jd.xml.xpath.axis.name
Class AllNameTest
java.lang.Object
jd.xml.xpath.axis.NodeTest
jd.xml.xpath.axis.NodeNameTest
jd.xml.xpath.axis.name.AllNameTest
- public final class AllNameTest
- extends NodeNameTest
A NodeNameTest that accepts all names and only tests the principalType.
AllNameTest
public AllNameTest()
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 nodeprincipalType
- 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