Class NoNodeTest
java.lang.Object
com.icl.saxon.pattern.Pattern
com.icl.saxon.pattern.NodeTest
com.icl.saxon.pattern.NoNodeTest
NodeTest is an interface that enables a test of whether a node has a particular
name and type. A NoNodeTest matches no nodes.
- Author:
- Michael H. Kay
-
Field Summary
Fields 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 NoNodeTestGet a NoNodeTest instancefinal shortDetermine the types of nodes to which this pattern applies.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, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, simplify, toString
-
Constructor Details
-
NoNodeTest
public NoNodeTest()
-
-
Method Details
-
getInstance
Get a NoNodeTest instance -
getNodeType
public final short getNodeType()Description copied from class:PatternDetermine the types of nodes to which this pattern applies. Used for optimisation. For patterns that match nodes of several types, return NodeInfo.NODE- Overrides:
getNodeTypein classPattern- Returns:
- the type of node matched by this pattern. e.g. NodeInfo.ELEMENT or NodeInfo.TEXT
-
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
-