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
-
-
Field Summary
Fields Modifier and Type Field Description private IterableAxis
axis
Deprecated.private PredicateSet
predicates
Deprecated.
-
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 void
addPredicate(Predicate predicate)
Deprecated.Add an additional predicate to this object.java.util.Iterator
axisIterator(java.lang.Object contextNode, ContextSupport support)
Deprecated.Get an Iterator for the current axis starting in the given contextNode.java.util.List
evaluate(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.int
getAxis()
Deprecated.Get an identifier for the current axis.java.lang.String
getAxisName()
Deprecated.IterableAxis
getIterableAxis()
Deprecated.java.util.List
getPredicates()
Deprecated.Returns a possibly empty list of predicates.PredicateSet
getPredicateSet()
Deprecated.Returns a possibly empty set of predicates.java.lang.String
getText()
Deprecated.Returns aString
containing the XPath expression.void
simplify()
Deprecated.Simplifies the XPath step.java.lang.String
toString()
Deprecated.
-
-
-
Field Detail
-
axis
private IterableAxis axis
Deprecated.
-
predicates
private PredicateSet predicates
Deprecated.
-
-
Constructor Detail
-
DefaultStep
public DefaultStep(IterableAxis axis, PredicateSet predicates)
Deprecated.
-
-
Method Detail
-
addPredicate
public void addPredicate(Predicate predicate)
Deprecated.Description copied from interface:Predicated
Add an additional predicate to this object.- Specified by:
addPredicate
in interfacePredicated
- Parameters:
predicate
- the predicate to add
-
getPredicates
public java.util.List getPredicates()
Deprecated.Description copied from interface:Predicated
Returns a possibly empty list of predicates.- Specified by:
getPredicates
in interfacePredicated
- Returns:
- the list of predicates
-
getPredicateSet
public PredicateSet getPredicateSet()
Deprecated.Description copied from interface:Predicated
Returns a possibly empty set of predicates.- Specified by:
getPredicateSet
in interfacePredicated
- Returns:
- the set of predicates
-
getAxis
public int getAxis()
Deprecated.Description copied from interface:Step
Get 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:Step
Returns aString
containing the XPath expression.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
simplify
public void simplify()
Deprecated.Description copied from interface:Step
Simplifies 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 UnsupportedAxisException
Deprecated.Description copied from interface:Step
Get an Iterator for the current axis starting in the given contextNode.- Specified by:
axisIterator
in 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: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 interfaceStep
- Returns:
- a list of matching nodes
- Throws:
JaxenException
-
-