public class DefaultNameStep extends DefaultStep implements NameStep
This includes simple steps, such as "foo", non-default-axis steps, such as "following-sibling::foo" or "@foo", and namespace-aware steps, such as "foo:bar".
Constructor and Description |
---|
DefaultNameStep(IterableAxis axis,
String prefix,
String localName,
PredicateSet predicateSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List |
evaluate(Context context)
Evaluate the context node set to find the new node set.
|
String |
getLocalName()
Gets the local name.
|
String |
getPrefix()
Gets the namespace prefix.
|
String |
getText()
Gets the step as a fully defined XPath.
|
boolean |
isMatchesAnyName()
Does this step match any name? (i.e.
|
boolean |
matches(Object node,
ContextSupport contextSupport)
Checks whether the node matches this step.
|
String |
toString()
Returns a full information debugging string.
|
addPredicate, axisIterator, getAxis, getAxisName, getIterableAxis, getPredicates, getPredicateSet, simplify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
axisIterator, getAxis, simplify
addPredicate, getPredicates, getPredicateSet
public DefaultNameStep(IterableAxis axis, String prefix, String localName, PredicateSet predicateSet)
axis
- the axis to work throughprefix
- the name prefixlocalName
- the local namepredicateSet
- the set of predicatespublic String getPrefix()
public String getLocalName()
getLocalName
in interface NameStep
public boolean isMatchesAnyName()
public String getText()
getText
in interface Step
getText
in class DefaultStep
public List evaluate(Context context) throws JaxenException
This method overrides the version in DefaultStep
for performance.
evaluate
in interface Step
evaluate
in class DefaultStep
context
- the node in context of its position in the documentJaxenException
public boolean matches(Object node, ContextSupport contextSupport) throws JaxenException
matches
in interface Step
node
- the node to checkcontextSupport
- the context supportJaxenException
public String toString()
toString
in class DefaultStep
Copyright 2001–2022 The Jaxen Project. All rights reserved.