com.icl.saxon.pattern
Class NodeTest
public abstract class NodeTest
A NodeTest is a simple kind of pattern that enables a context-free test of whether
a node has a particular
name. There are five kinds of name test: a full name test, a prefix test, and an
"any node of a given type" test, an "any node of any type" test, and a "no nodes"
test (used, e.g. for "@comment()")
boolean | matches(NodeInfo node)- Test whether this node test is satisfied by a given node
|
boolean | matches(NodeInfo node, Context c)- Test whether this node test is satisfied by a given node, in a given Context
|
boolean | matches(short nodeType, int fingerprint)- Test whether this node test is satisfied by a given node
|
getDefaultPriority, getFingerprint, getLineNumber, getNodeType, getStaticContext, getSystemId, make, matches, setOriginalText, setStaticContext, simplify, toString |
matches
public boolean matches(NodeInfo node)
Test whether this node test is satisfied by a given node
matches
public final boolean matches(NodeInfo node,
Context c) Test whether this node test is satisfied by a given node, in a given Context
- matches in interface Pattern
matches
public boolean matches(short nodeType,
int fingerprint) Test whether this node test is satisfied by a given node
nodeType - The type of node to be matchedfingerprint - identifies the expanded name of the node to be matched.
The value should be -1 for a node with no name.