com.icl.saxon.pattern
Class AnyNodeTest
public final class AnyNodeTest
NodeTest is an interface that enables a test of whether a node has a particular
name and type. An AnyNodeTest matches any node.
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
|
getDefaultPriority , getFingerprint , getLineNumber , getNodeType , getStaticContext , getSystemId , make , matches , setOriginalText , setStaticContext , simplify , toString |
AnyNodeTest
public AnyNodeTest()
getDefaultPriority
public final double getDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern
- getDefaultPriority in interface Pattern
getInstance
public static AnyNodeTest getInstance()
Get an instance of AnyNodeTest
matches
public final boolean matches(NodeInfo node)
Test whether this node test is satisfied by a given node
- matches in interface NodeTest
matches
public final boolean matches(short nodeType,
int fingerprint)
Test whether this node test is satisfied by a given node
- matches in interface NodeTest
nodeType
- The type of node to be matchedfingerprint
- identifies the expanded name of the node to be matched