XPathStep class final
One step of a location path, such as child::age[1].
Port of org.javarosa.xpath.expr.XPathStep.
- Annotations
-
- @immutable
Constructors
- XPathStep.abbreviatedDescendants()
-
The step inserted for
//. - XPathStep.abbreviatedParent()
-
.. - XPathStep.abbreviatedSelf()
-
. -
XPathStep.named(XPathAxis axis, XPathQName name, [List<
XPathExpression> predicates = const []]) -
A name-test step such as
ageor@id. -
XPathStep.namespaceWildcard(XPathAxis axis, String namespace, [List<
XPathExpression> predicates = const []]) -
A
prefix:*step. -
XPathStep.typed(XPathAxis axis, StepTest test, {String? literal, List<
XPathExpression> predicates = const []}) -
A
*,node(),text(),comment()orprocessing-instruction(literal)step.
Properties
- axis → XPathAxis
-
The axis.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- literal → String?
-
The literal, for StepTest.processingInstruction only.
final
- name → XPathQName?
-
The name, for StepTest.name only.
final
- namespace → String?
-
The namespace prefix, for StepTest.namespaceWildcard only.
final
-
predicates
→ List<
XPathExpression> -
Predicates, in order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- test → StepTest
-
The kind of node test.
final
- testString → String
-
The node test as JavaRosa prints it.
no setter
Methods
-
matches(
XPathStep other) → bool -
Like
==, but a name test also matches*. Port ofXPathStep.matches. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override