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
-
public final class AnyNodeTest extends NodeTest
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
Fields Modifier and Type Field Description (package private) static AnyNodeTest
instance
-
Fields inherited from class com.icl.saxon.pattern.Pattern
originalText, staticContext
-
-
Constructor Summary
Constructors Constructor Description AnyNodeTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDefaultPriority()
Determine the default priority of this node test when used on its own as a Patternstatic AnyNodeTest
getInstance()
Get an instance of AnyNodeTestboolean
matches(short nodeType, int fingerprint)
Test whether this node test is satisfied by a given nodeboolean
matches(NodeInfo node)
Test whether this node test is satisfied by a given node-
Methods inherited from class com.icl.saxon.pattern.Pattern
getFingerprint, getLineNumber, getNodeType, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, simplify, toString
-
-
-
-
Field Detail
-
instance
static AnyNodeTest instance
-
-
Method Detail
-
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
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
-
-