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.

Author: Michael H. Kay

Method Summary
doublegetDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern
static NoNodeTestgetInstance()
Get a NoNodeTest instance
shortgetNodeType()
booleanmatches(NodeInfo node)
Test whether this node test is satisfied by a given node
booleanmatches(short nodeType, int fingerprint)
Test whether this node test is satisfied by a given node

Method Detail

getDefaultPriority

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

getInstance

public static NoNodeTest getInstance()
Get a NoNodeTest instance

getNodeType

public final short getNodeType()

matches

public final boolean matches(NodeInfo node)
Test whether this node test is satisfied by a given node

matches

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

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