org.jaxen.expr
public class DefaultNameStep extends DefaultStep implements NameStep
Deprecated: this class will become non-public in the future; use the interface instead
Expression object that represents any flavor of name-test steps within an XPath.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".
Field Summary | |
---|---|
boolean | hasPrefix Quick flag denoting if we have a namespace prefix * |
String | localName
Our local-name.
|
boolean | matchesAnyName Quick flag denoting if the local name was '*' |
String | prefix
Our prefix, bound through the current Context.
|
static long | serialVersionUID |
Constructor Summary | |
---|---|
DefaultNameStep(IterableAxis axis, String prefix, String localName, PredicateSet predicateSet)
Constructor.
|
Method Summary | |
---|---|
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 | hasNamespace(String uri)
Checks whether the URI represents a namespace.
|
boolean | isMatchesAnyName()
Does this step match any name? |
boolean | matches(Object node, ContextSupport contextSupport)
Checks whether the node matches this step.
|
protected boolean | matchesNamespaceURIs(String uri1, String uri2)
Compares two namespace URIs, handling null.
|
String | toString()
Returns a full information debugging string.
|
Parameters: axis the axis to work through prefix the name prefix localName the local name predicateSet the set of predicates
This method overrides the version in DefaultStep
for performance.
Returns: the local name
Returns: the prefix
Returns: the full XPath for this step
Parameters: uri the URI to check
Returns: true if non-null and non-empty
Returns: true if it matches any name
Parameters: node the node to check contextSupport the context support
Returns: true if matches
Throws: JaxenException
Parameters: uri1 the first URI uri2 the second URI
Returns: true if equal, where null==""
Returns: a debugging string