|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.pattern.Pattern | +--com.icl.saxon.pattern.NodeTest | +--com.icl.saxon.pattern.AnyNodeTest
NodeTest is an interface that enables a test of whether a node has a particular name and type. An AnyNodeTest matches any node.
Field Summary | |
(package private) static AnyNodeTest |
instance
|
Fields inherited from class com.icl.saxon.pattern.Pattern |
originalText, staticContext |
Constructor Summary | |
AnyNodeTest()
|
Method Summary | |
double |
getDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern |
static AnyNodeTest |
getInstance()
Get an instance of AnyNodeTest |
boolean |
matches(NodeInfo node)
Test whether this node test is satisfied by a given node |
boolean |
matches(short nodeType,
int fingerprint)
Test whether this node test is satisfied by a given node |
Methods inherited from class com.icl.saxon.pattern.NodeTest |
matches |
Methods inherited from class com.icl.saxon.pattern.Pattern |
getFingerprint, getLineNumber, getNodeType, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, simplify, toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
static AnyNodeTest instance
Constructor Detail |
public AnyNodeTest()
Method Detail |
public static AnyNodeTest getInstance()
public final boolean matches(NodeInfo node)
matches
in class NodeTest
public final boolean matches(short nodeType, int fingerprint)
matches
in class NodeTest
nodeType
- The type of node to be matchedfingerprint
- identifies the expanded name of the node to be matchedpublic final double getDefaultPriority()
getDefaultPriority
in class Pattern
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |