Index class abstract base

An ordering of children: by priority (default), key, value, or a child path.

Implementers

Constructors

Index()
Const constructor for subclasses.
const

Properties

comparator → Comparator<NamedNode>
compare as a Comparator, for sorted maps.
no setter
hashCode → int
The hash code for this object.
no setterinherited
maxPost → NamedNode
The post after every child.
no setter
minPost → NamedNode
The post before every child.
no setter
queryDefinition → String
The wire name of the index: .priority, .key, .value or the child path (a/b).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

compare(NamedNode a, NamedNode b) → int
Compares two children; ties are broken by key.
indexedValueChanged(Node oldNode, Node newNode) → bool
Whether the indexed value differs between oldNode and newNode.
isDefinedOn(Node node) → bool
Whether node has a value under this index (for example a priority).
makePost(Node indexValue, ChildKey name) → NamedNode
The post for a query bound: indexValue under name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
The queryDefinition, which is also the key of the index in an IndexMap (JS toString).
override

Operators

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