jd.xml.xpath.axis.name
Class AllNameTest

java.lang.Object
  extended byjd.xml.xpath.axis.NodeTest
      extended byjd.xml.xpath.axis.NodeNameTest
          extended byjd.xml.xpath.axis.name.AllNameTest

public final class AllNameTest
extends NodeNameTest

A NodeNameTest that accepts all names and only tests the principalType.


Field Summary
 
Fields inherited from class jd.xml.xpath.axis.NodeNameTest
ALL
 
Fields inherited from class jd.xml.xpath.axis.NodeTest
EXACT, NO, WILDCARD
 
Constructor Summary
AllNameTest()
           
 
Method Summary
 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 "*".
 
Methods inherited from class jd.xml.xpath.axis.NodeNameTest
getTest, matchNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllNameTest

public AllNameTest()
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

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()
Return "*".

Specified by:
toString in class NodeTest