Package org.jaxen.expr
Class DefaultStep
- java.lang.Object
-
- org.jaxen.expr.DefaultStep
-
- All Implemented Interfaces:
java.io.Serializable,Predicated,Step
- Direct Known Subclasses:
DefaultAllNodeStep,DefaultCommentNodeStep,DefaultNameStep,DefaultProcessingInstructionNodeStep,DefaultTextNodeStep
public abstract class DefaultStep extends java.lang.Object implements Step
Deprecated.this class will become non-public in the future; use the interface instead- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultStep(IterableAxis axis, PredicateSet predicates)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddPredicate(Predicate predicate)Deprecated.Add an additional predicate to this object.java.util.IteratoraxisIterator(java.lang.Object contextNode, ContextSupport support)Deprecated.Get an Iterator for the current axis starting in the given contextNode.java.util.Listevaluate(Context context)Deprecated.For each node in the given context calls matches() for every node on the axis, then filters the result by each of the predicates.intgetAxis()Deprecated.Get an identifier for the current axis.java.lang.StringgetAxisName()Deprecated.IterableAxisgetIterableAxis()Deprecated.java.util.ListgetPredicates()Deprecated.Returns a possibly empty list of predicates.PredicateSetgetPredicateSet()Deprecated.Returns a possibly empty set of predicates.java.lang.StringgetText()Deprecated.Returns aStringcontaining the XPath expression.voidsimplify()Deprecated.Simplifies the XPath step.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
DefaultStep
public DefaultStep(IterableAxis axis, PredicateSet predicates)
Deprecated.
-
-
Method Detail
-
addPredicate
public void addPredicate(Predicate predicate)
Deprecated.Description copied from interface:PredicatedAdd an additional predicate to this object.- Specified by:
addPredicatein interfacePredicated- Parameters:
predicate- the predicate to add
-
getPredicates
public java.util.List getPredicates()
Deprecated.Description copied from interface:PredicatedReturns a possibly empty list of predicates.- Specified by:
getPredicatesin interfacePredicated- Returns:
- the list of predicates
-
getPredicateSet
public PredicateSet getPredicateSet()
Deprecated.Description copied from interface:PredicatedReturns a possibly empty set of predicates.- Specified by:
getPredicateSetin interfacePredicated- Returns:
- the set of predicates
-
getAxis
public int getAxis()
Deprecated.Description copied from interface:StepGet an identifier for the current axis.
-
getIterableAxis
public IterableAxis getIterableAxis()
Deprecated.
-
getAxisName
public java.lang.String getAxisName()
Deprecated.
-
getText
public java.lang.String getText()
Deprecated.Description copied from interface:StepReturns aStringcontaining the XPath expression.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
simplify
public void simplify()
Deprecated.Description copied from interface:StepSimplifies the XPath step. In practice, this is usually a noop. Jaxen does not currently perform any simplification.
-
axisIterator
public java.util.Iterator axisIterator(java.lang.Object contextNode, ContextSupport support) throws UnsupportedAxisExceptionDeprecated.Description copied from interface:StepGet an Iterator for the current axis starting in the given contextNode.- Specified by:
axisIteratorin interfaceStep- Parameters:
contextNode- the node from which to follow this stepsupport- the remaining context for the traversal- Returns:
- an iterator over the nodes along the axis
- Throws:
UnsupportedAxisException- if the navigator does not support this step's axis
-
evaluate
public java.util.List evaluate(Context context) throws JaxenException
Deprecated.Description copied from interface:StepFor 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:
evaluatein interfaceStep- Returns:
- a list of matching nodes
- Throws:
JaxenException
-
-