jd.xml.xpath.axis.type
Class PiNodeTypeTest

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

public final class PiNodeTypeTest
extends NodeTypeTest

Implements the node-test "processing-instruction(string)".


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
PiNodeTypeTest(String value)
          Create a PiNodeTypeTest.
 
Method Summary
 boolean accept(int nodeType)
          Return if the node-type test accepts the given node-type.
 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.0.
 String toString()
          Return a string representation.
 
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

PiNodeTypeTest

public PiNodeTypeTest(String value)
Create a PiNodeTypeTest.

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 if the node-type test accepts the given node-type.

Specified by:
accept in class NodeTypeTest

calculatePriority

public double calculatePriority()
Return 0.0.

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 a string representation.

Specified by:
toString in class NodeTest