org.jaxen.expr
Class DefaultStep

java.lang.Object
  |
  +--org.jaxen.expr.DefaultStep
All Implemented Interfaces:
Predicated, Serializable, Step, Visitable
Direct Known Subclasses:
DefaultAllNodeStep, DefaultCommentNodeStep, DefaultNameStep, DefaultProcessingInstructionNodeStep, DefaultTextNodeStep

public abstract class DefaultStep
extends Object
implements Step

See Also:
Serialized Form

Constructor Summary
DefaultStep(IterableAxis axis, PredicateSet predicates)
           
 
Method Summary
 void addPredicate(Predicate predicate)
           
 Iterator axisIterator(Object contextNode, ContextSupport support)
          Get an Iterator for the current axis starting in the given contextNode.
 List evaluate(Context context)
          For each node in the given context calls matches() for every node on the axis, then filters the result by each of the predicates.
 int getAxis()
          Get an identifier for the current axis.
 String getAxisName()
           
 IterableAxis getIterableAxis()
           
 List getPredicates()
           
 PredicateSet getPredicateSet()
           
 String getText()
           
 void simplify()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jaxen.expr.Step
matches
 
Methods inherited from interface org.jaxen.expr.Visitable
accept
 

Constructor Detail

DefaultStep

public DefaultStep(IterableAxis axis,
                   PredicateSet predicates)
Method Detail

addPredicate

public void addPredicate(Predicate predicate)
Specified by:
addPredicate in interface Predicated

getPredicates

public List getPredicates()
Specified by:
getPredicates in interface Predicated

getPredicateSet

public PredicateSet getPredicateSet()
Specified by:
getPredicateSet in interface Predicated

getAxis

public int getAxis()
Description copied from interface: Step
Get an identifier for the current axis.

Specified by:
getAxis in interface Step
See Also:
Axis

getIterableAxis

public IterableAxis getIterableAxis()

getAxisName

public String getAxisName()

getText

public String getText()
Specified by:
getText in interface Step

toString

public String toString()
Overrides:
toString in class Object

simplify

public void simplify()
Specified by:
simplify in interface Step

axisIterator

public Iterator axisIterator(Object contextNode,
                             ContextSupport support)
                      throws UnsupportedAxisException
Description copied from interface: Step
Get an Iterator for the current axis starting in the given contextNode.

Specified by:
axisIterator in interface Step
UnsupportedAxisException

evaluate

public List evaluate(Context context)
              throws JaxenException
Description copied from interface: Step
For each node in the given context calls matches() for every node on the axis, then filters the result by each of the predicates.

Specified by:
evaluate in interface Step
JaxenException


Copyright © 2001-2003 Codehaus. All Rights Reserved.