jd.xml.xpath.axis
Interface NodeTestVisitor

All Known Implementing Classes:
PatternClassifier

public interface NodeTestVisitor

A Visitor interface for NodeTests.


Method Summary
 void testNodeName(NodeName name, String namespaceUri, String localName)
          Called by a visited NodeNameTest.
 void testNodeType(NodeTypeTest test, String parameter)
          Called by a visited NodeTypeTest.
 void testNodeUnion(NodeTest test1, NodeTest test2)
          Called by a visited NodeTestUnion.
 

Method Detail

testNodeType

public void testNodeType(NodeTypeTest test,
                         String parameter)
Called by a visited NodeTypeTest. Use NodeTypeTest.accept(int) to explore the types accepted by the test.

Parameters:
test - the NodeTypeTest
parameter - the optional parameter if it is a processing-instruction test or null else
See Also:
NodeTypeTest.accept(int)

testNodeUnion

public void testNodeUnion(NodeTest test1,
                          NodeTest test2)
Called by a visited NodeTestUnion.


testNodeName

public void testNodeName(NodeName name,
                         String namespaceUri,
                         String localName)
Called by a visited NodeNameTest.

Parameters:
name - the NodeName if the test uses a NodeNamePool, or null if not.
namespaceUri - the tested namespaceUri or null if all node names are accepted
localName - the tested localName or null if all node local names are accepted