jd.xml.xslt.pattern
Class NodeTypeAllTest
java.lang.Object
jd.xml.xpath.axis.NodeTest
jd.xml.xpath.axis.NodeTypeTest
jd.xml.xslt.pattern.NodeTypeAllTest
- public final class NodeTypeAllTest
- extends NodeTypeTest
Implements the node-test "node()" for patterns.
Other as for XPath location-steps this node-test does
not match the root or an attribute node.
Method Summary |
boolean |
accept(int type)
Test if the nodetype is the root or attribute type. |
void |
accept(NodeTestVisitor visitor)
Accept a NodeTestVisitor. |
boolean |
accept(XPathNode node,
int principalType)
Test if the node is not a root or an attribute node. |
double |
calculatePriority()
Calculate the priority of this node test. |
String |
toString()
Return a string representation of the NodeTest. |
INSTANCE
public static final NodeTypeAllTest INSTANCE
NodeTypeAllTest
public NodeTypeAllTest()
accept
public boolean accept(XPathNode node,
int principalType)
- Test if the node is not a root or an attribute node.
- Specified by:
accept
in class NodeTest
- Parameters:
node
- the tested nodeprincipalType
- the principal node type as determined by the associated axis
accept
public boolean accept(int type)
- Test if the nodetype is the root or attribute type.
- Specified by:
accept
in class NodeTypeTest
calculatePriority
public double calculatePriority()
- Description copied from class:
NodeTest
- Calculate the priority of this node test. Actually this is a contribution
to the calculation of the default priority of an XSLT step pattern.
- Specified by:
calculatePriority
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
accept
public void accept(NodeTestVisitor visitor)
- Description copied from class:
NodeTest
- Accept a NodeTestVisitor.
- Specified by:
accept
in class NodeTest