net.sf.swan.xpath.pattern
Class Step

java.lang.Object
  |
  +--net.sf.swan.xpath.pattern.PredicatedPattern
        |
        +--net.sf.swan.xpath.pattern.Step
All Implemented Interfaces:
NodeTypes, Pattern
Direct Known Subclasses:
ChildOrAttributeStep, DescendantStep

public abstract class Step
extends PredicatedPattern


Fields inherited from interface net.sf.swan.xpath.pattern.NodeTypes
ANY_NODE, ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
 
Constructor Summary
Step(NodeTest nodeTest, Pattern parentStep)
           
 
Method Summary
 double getDefaultPriority()
           
 java.lang.String getMatchNodeName()
           
 short getMatchNodeType()
           
 NodeTest getNodeTest()
           
 Pattern getParentPattern()
           
 boolean match(java.lang.Object node, org.jaxen.ContextSupport support)
           
protected abstract  boolean matchNext(java.lang.Object originNode, org.jaxen.ContextSupport support, Pattern next)
           
 void setParentPattern(Pattern parent)
           
 Pattern simplify()
           
 
Methods inherited from class net.sf.swan.xpath.pattern.PredicatedPattern
applyPredicate, evaluatePredicates, getPredicates, hasPredicates, setPredicates, simplifyPredicates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Step

public Step(NodeTest nodeTest,
            Pattern parentStep)
Method Detail

setParentPattern

public void setParentPattern(Pattern parent)

getParentPattern

public Pattern getParentPattern()

getDefaultPriority

public double getDefaultPriority()

getMatchNodeType

public short getMatchNodeType()

getMatchNodeName

public java.lang.String getMatchNodeName()

getNodeTest

public NodeTest getNodeTest()

simplify

public Pattern simplify()

match

public boolean match(java.lang.Object node,
                     org.jaxen.ContextSupport support)
              throws org.jaxen.JaxenException

matchNext

protected abstract boolean matchNext(java.lang.Object originNode,
                                     org.jaxen.ContextSupport support,
                                     Pattern next)
                              throws org.jaxen.JaxenException