Class AnyNodeTest
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.
- Author:
- Michael H. Kay
-
Field Summary
FieldsFields inherited from class Pattern
originalText, staticContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal doubleDetermine the default priority of this node test when used on its own as a Patternstatic AnyNodeTestGet an instance of AnyNodeTestfinal booleanmatches(short nodeType, int fingerprint) Test whether this node test is satisfied by a given nodefinal booleanTest whether this node test is satisfied by a given nodeMethods inherited from class Pattern
getFingerprint, getLineNumber, getNodeType, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, simplify, toString
-
Field Details
-
instance
-
-
Constructor Details
-
AnyNodeTest
public AnyNodeTest()
-
-
Method Details
-
getInstance
Get an instance of AnyNodeTest -
matches
-
matches
-
getDefaultPriority
public final double getDefaultPriority()Determine the default priority of this node test when used on its own as a Pattern- Overrides:
getDefaultPriorityin classPattern
-