jd.xml.xpath.axis.type
Class AllNodeTypeTest

java.lang.Object
  extended byjd.xml.xpath.axis.NodeTest
      extended byjd.xml.xpath.axis.NodeTypeTest
          extended byjd.xml.xpath.axis.type.AllNodeTypeTest

public final class AllNodeTypeTest
extends NodeTypeTest

Implements the node-test "node()".


Field Summary
 
Fields inherited from class jd.xml.xpath.axis.NodeTypeTest
ALL, COMMENT, NAME_ALL, NAME_COMMENT, NAME_PI, NAME_TEXT, PI, TEXT
 
Fields inherited from class jd.xml.xpath.axis.NodeTest
EXACT, NO, WILDCARD
 
Constructor Summary
AllNodeTypeTest()
           
 
Method Summary
 boolean accept(int nodeType)
          Return true.
 void accept(NodeTestVisitor visitor)
          Accept a NodeTestVisitor.
 boolean accept(XPathNode node, int principalType)
          Test if a node is accepted by this NodeTest.
 double calculatePriority()
          Return -0.5.
 String toString()
          Return a string representation of the NodeTest.
 
Methods inherited from class jd.xml.xpath.axis.NodeTypeTest
getTest, matchNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllNodeTypeTest

public AllNodeTypeTest()
Method Detail

accept

public boolean accept(XPathNode node,
                      int principalType)
Test if a node is accepted by this NodeTest.

Specified by:
accept in class NodeTest
Parameters:
node - the tested node
principalType - the principal node type as determined by the associated axis

accept

public boolean accept(int nodeType)
Return true.

Specified by:
accept in class NodeTypeTest

calculatePriority

public double calculatePriority()
Return -0.5.

Specified by:
calculatePriority in class NodeTest

accept

public void accept(NodeTestVisitor visitor)
Accept a NodeTestVisitor.

Specified by:
accept in class NodeTest

toString

public String toString()
Description copied from class: NodeTest
Return a string representation of the NodeTest.

Specified by:
toString in class NodeTest