Package com.icl.saxon.pattern
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 com.icl.saxon.pattern.Pattern
originalText, staticContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal double
Determine the default priority of this node test when used on its own as a Patternstatic AnyNodeTest
Get an instance of AnyNodeTestfinal boolean
matches
(short nodeType, int fingerprint) Test whether this node test is satisfied by a given nodefinal boolean
Test whether this node test is satisfied by a given nodeMethods inherited from class com.icl.saxon.pattern.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
Test whether this node test is satisfied by a given node -
matches
public final boolean matches(short nodeType, int fingerprint) Test whether this node test is satisfied by a given node -
getDefaultPriority
public final double getDefaultPriority()Determine the default priority of this node test when used on its own as a Pattern- Overrides:
getDefaultPriority
in classPattern
-