jd.xml.xslt.pattern
Class NodeTypeAllTest

java.lang.Object
  extended byjd.xml.xpath.axis.NodeTest
      extended byjd.xml.xpath.axis.NodeTypeTest
          extended byjd.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.


Field Summary
static NodeTypeAllTest INSTANCE
           
 
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
NodeTypeAllTest()
           
 
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.
 
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
 

Field Detail

INSTANCE

public static final NodeTypeAllTest INSTANCE
Constructor Detail

NodeTypeAllTest

public NodeTypeAllTest()
Method Detail

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