public abstract class DefaultStep extends Object implements Step
Modifier and Type | Method and Description |
---|---|
void |
addPredicate(Predicate predicate)
Add an additional predicate to this object.
|
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()
Returns a possibly empty list of predicates.
|
PredicateSet |
getPredicateSet()
Returns a possibly empty set of predicates.
|
String |
getText()
Returns a
String containing the XPath expression. |
void |
simplify()
Simplifies the XPath step.
|
String |
toString() |
public void addPredicate(Predicate predicate)
Predicated
addPredicate
in interface Predicated
predicate
- the predicate to addpublic List getPredicates()
Predicated
getPredicates
in interface Predicated
public PredicateSet getPredicateSet()
Predicated
getPredicateSet
in interface Predicated
public int getAxis()
Step
public IterableAxis getIterableAxis()
public String getAxisName()
public String getText()
Step
String
containing the XPath expression.public void simplify()
Step
public Iterator axisIterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException
Step
axisIterator
in interface Step
contextNode
- the node from which to follow this stepsupport
- the remaining context for the traversalUnsupportedAxisException
- if the navigator does not support this step's axispublic List evaluate(Context context) throws JaxenException
Step
evaluate
in interface Step
context
- the node in context of its position in the documentJaxenException
Copyright 2001–2022 The Jaxen Project. All rights reserved.