NAME
TPath::Predicate - interface of square bracket sub-expressions in TPath expressions
VERSION
version 1.007
ATTRIBUTES
outer
Whether the predicate is inside or outside any grouping parentheses.
//*[foo] # inside -- outer is false
(//*)[foo] # outside -- outer is true
This distinction, though available to all predicates, is especially important to index predicates.
//*[0]
Means the root and any element which is the first child of its parents. While
(//*)[0]
means the first of all elements -- the root.
METHODS
filter
Takes an index and a collection of TPath::Context objects and returns the collection of contexts for which the predicate is true.
ROLES
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.