com.icl.saxon.pattern

Class NoNodeTest


public final class NoNodeTest
extends NodeTest

NodeTest is an interface that enables a test of whether a node has a particular name and type. A NoNodeTest matches no nodes.

Field Summary

Fields inherited from class com.icl.saxon.pattern.Pattern

originalText, staticContext

Method Summary

double
getDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern
static NoNodeTest
getInstance()
Get a NoNodeTest instance
short
getNodeType()
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

Methods inherited from class com.icl.saxon.pattern.NodeTest

matches, matches, matches

Methods inherited from class com.icl.saxon.pattern.Pattern

getDefaultPriority, getFingerprint, getLineNumber, getNodeType, getStaticContext, getSystemId, make, matches, setOriginalText, setStaticContext, simplify, toString

Method Details

getDefaultPriority

public final double getDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern
Overrides:
getDefaultPriority in interface Pattern


getInstance

public static NoNodeTest getInstance()
Get a NoNodeTest instance


getNodeType

public final short getNodeType()
Overrides:
getNodeType in interface Pattern


matches

public final boolean matches(NodeInfo node)
Test whether this node test is satisfied by a given node
Overrides:
matches in interface NodeTest


matches

public boolean matches(short nodeType,
                       int fingerprint)
Test whether this node test is satisfied by a given node
Overrides:
matches in interface NodeTest

Parameters:
nodeType - The type of node to be matched
fingerprint - identifies the expanded name of the node to be matched