com.icl.saxon.pattern

Class 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
static AnyNodeTestinstance
Constructor Summary
AnyNodeTest()
Method Summary
doublegetDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern
static AnyNodeTestgetInstance()
Get an instance of AnyNodeTest
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

Field Detail

instance

static AnyNodeTest instance

Constructor Detail

AnyNodeTest

public AnyNodeTest()

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 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

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