NAME
TPath::TypeCheck - applies type constraint on nodes
VERSION
version 1.007
DESCRIPTION
Role of an object that checks the class of a node against the class it knows it can handle.
METHODS
_typecheck
Expects a node. Confesses if the node is of the wrong type.
ATTRIBUTES
- node_type
-
If set on object construction, all nodes handled by the
TPath::TypeCheck
will have to be of this class or an error will be thrown. Can be used to enforce type safety. The test is only performed on certain gateway methods --TPath::Expression::select()
andTPath::Index::index()
-- so little overhead is incurred.
AUTHOR
David F. Houghton <dfhoughton@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by David F. Houghton.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.