public class NodeTestPattern extends Pattern
?????? |
---|
NodeTestPattern() |
NodeTestPattern(NodeTest test) |
?????? | ????? |
---|---|
boolean |
equals(java.lang.Object other)
Determine whether this pattern is the same as another pattern
|
double |
getDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern
|
int |
getFingerprint()
Determine the name fingerprint of nodes to which this pattern applies.
|
int |
getNodeKind()
Determine the types of nodes to which this pattern applies.
|
NodeTest |
getNodeTest()
Get a NodeTest that all the nodes matching this pattern must satisfy
|
int |
hashCode()
Hashcode supporting equals()
|
boolean |
matches(NodeInfo node,
XPathContext context)
Determine whether this Pattern matches the given Node.
|
void |
setNodeTest(NodeTest test) |
java.lang.String |
toString()
Display the pattern for diagnostics
|
allocateSlots, analyze, getColumnNumber, getDependencies, getExecutable, getHostLanguage, getLineNumber, getLocationProvider, getPublicId, getSystemId, internalMatches, iterateSubExpressions, make, makeSearchExpression, promote, replaceSubExpression, selectNodes, setExecutable, setLineNumber, setOriginalText, setSystemId, simplify
public NodeTestPattern()
public NodeTestPattern(NodeTest test)
public void setNodeTest(NodeTest test)
public boolean matches(NodeInfo node, XPathContext context)
matches
??? Pattern
node
- The NodeInfo representing the Element or other node to be tested against the Patterncontext
- The context in which the match is to take place. Only relevant if the pattern
uses variables, or contains calls on functions such as document() or key(). Not used (and can be
set to null) in the case of patterns that are NodeTestspublic NodeTest getNodeTest()
getNodeTest
??? Pattern
public final double getDefaultPriority()
getDefaultPriority
??? Pattern
public int getNodeKind()
getNodeKind
??? Pattern
public int getFingerprint()
getFingerprint
??? Pattern
public java.lang.String toString()
public boolean equals(java.lang.Object other)
equals
??? java.lang.Object
other
- the other objectpublic int hashCode()
hashCode
??? java.lang.Object