com.icl.saxon.expr
Class Step

java.lang.Object
  |
  +--com.icl.saxon.expr.Step

public final class Step
extends java.lang.Object

A step in a path expression


Field Summary
protected  Axis axis
           
protected  NodeTest test
           
 
Constructor Summary
Step(Axis axis, NodeTest nodeTest)
           
 
Method Summary
 Step addFilter(Expression exp)
           
 NodeEnumeration enumerate(NodeInfo node, Context context)
          Enumerate this step.
 Axis getAxis()
           
 java.util.Vector getFilters()
           
 NodeTest getNodeTest()
           
 void setFilters(java.util.Vector v)
           
 Step simplify()
          Simplify the step.
 java.lang.String toString()
          Return a string representation of the Step
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

axis

protected Axis axis

test

protected NodeTest test
Constructor Detail

Step

public Step(Axis axis,
            NodeTest nodeTest)
Method Detail

addFilter

public Step addFilter(Expression exp)

setFilters

public void setFilters(java.util.Vector v)

getAxis

public Axis getAxis()

getNodeTest

public NodeTest getNodeTest()

getFilters

public java.util.Vector getFilters()

simplify

public Step simplify()
              throws org.xml.sax.SAXException
Simplify the step. Return either the same step after simplification, or null, indicating that the step will always give an empty result.

enumerate

public NodeEnumeration enumerate(NodeInfo node,
                                 Context context)
                          throws org.xml.sax.SAXException
Enumerate this step.
Parameters:
node: - The node from which we want to make the step
context: - The context for evaluation. Affects the result of positional filters

toString

public java.lang.String toString()
Return a string representation of the Step
Overrides:
toString in class java.lang.Object