gnu.xml.xpath
Class Selector
- XPathExpression
public final class Selector
extends gnu.xml.xpath.Path
A single component of a location path.
_boolean , _id , _local_name , _name , _namespace_uri , _number , _string , clone , evaluate , evaluate , evaluate , evaluate , evaluate , stringValue , stringValue |
ANCESTOR
public static final int ANCESTOR
- 0
ANCESTOR_OR_SELF
public static final int ANCESTOR_OR_SELF
- 1
ATTRIBUTE
public static final int ATTRIBUTE
- 2
CHILD
public static final int CHILD
- 3
DESCENDANT
public static final int DESCENDANT
- 4
DESCENDANT_OR_SELF
public static final int DESCENDANT_OR_SELF
- 5
FOLLOWING
public static final int FOLLOWING
- 6
FOLLOWING_SIBLING
public static final int FOLLOWING_SIBLING
- 7
NAMESPACE
public static final int NAMESPACE
- 8
PARENT
public static final int PARENT
- 9
PRECEDING
public static final int PRECEDING
- 10
PRECEDING_SIBLING
public static final int PRECEDING_SIBLING
- 11
SELF
public static final int SELF
- 12
Selector
public Selector(int axis,
List tests)
clone
public Expr clone(Object context)
- clone in interface Expr
evaluate
public Object evaluate(Node context,
int pos,
int len)
- evaluate in interface Expr
getTests
public Test[] getTests()
Returns the list of tests to perform on candidates.
matches
public boolean matches(Node context)
- matches in interface Pattern
toString
public String toString()