XPathAxis enum

XPath axes.

Inheritance
Available extensions

Values

child → const XPathAxis

child::

const XPathAxis('child')
descendant → const XPathAxis

descendant::

const XPathAxis('descendant')
parent → const XPathAxis

parent::

const XPathAxis('parent')
ancestor → const XPathAxis

ancestor::

const XPathAxis('ancestor')
followingSibling → const XPathAxis

following-sibling::

const XPathAxis('following-sibling')
precedingSibling → const XPathAxis

preceding-sibling::

const XPathAxis('preceding-sibling')
following → const XPathAxis

following::

const XPathAxis('following')
preceding → const XPathAxis

preceding::

const XPathAxis('preceding')
attribute → const XPathAxis

attribute:: or @

const XPathAxis('attribute')
namespace → const XPathAxis

namespace::

const XPathAxis('namespace')
self → const XPathAxis

self::

const XPathAxis('self')
descendantOrSelf → const XPathAxis

descendant-or-self::

const XPathAxis('descendant-or-self')
ancestorOrSelf → const XPathAxis

ancestor-or-self::

const XPathAxis('ancestor-or-self')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
xpathName → String
The axis name as written in XPath.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromName(String name) → XPathAxis?
Looks up an axis by its XPath name, or returns null.

Constants

values → const List<XPathAxis>
A constant List of the values in this enum, in order of their declaration.