org.jaxen.expr
Class DefaultStep
java.lang.Object
org.jaxen.expr.DefaultStep
- All Implemented Interfaces:
- Predicated, java.io.Serializable, Step, Visitable
- Direct Known Subclasses:
- DefaultAllNodeStep, DefaultCommentNodeStep, DefaultNameStep, DefaultProcessingInstructionNodeStep, DefaultTextNodeStep
- public abstract class DefaultStep
- extends java.lang.Object
- implements Step
- See Also:
- Serialized Form
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 |
axis
private IterableAxis axis
predicates
private PredicateSet predicates
PRESENT
private static final java.lang.Object PRESENT
DefaultStep
public DefaultStep(IterableAxis axis,
PredicateSet predicates)
addPredicate
public void addPredicate(Predicate predicate)
- Specified by:
addPredicate
in interface Predicated
getPredicates
public java.util.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 java.lang.String getAxisName()
getText
public java.lang.String getText()
- Specified by:
getText
in interface Step
toString
public java.lang.String toString()
simplify
public void simplify()
- Specified by:
simplify
in interface Step
axisIterator
public java.util.Iterator axisIterator(java.lang.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
- Throws:
UnsupportedAxisException
evaluate
public java.util.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
- Throws:
JaxenException