ChainedFinder class abstract

Applies additional filtering against a parent Finder.

Inheritance

Constructors

ChainedFinder(Finder parent)
Create a Finder chained against the candidates of another Finder.

Properties

allCandidates Iterable<Element>
Returns all the Elements that will be considered by this finder.
no setteroverride
description String
Describes what the finder is looking for. The description should be a brief English noun phrase describing the finder's pattern.
no setterinherited
first Finder
Returns a variant of this finder that only matches the first element matched by this finder.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
last Finder
Returns a variant of this finder that only matches the last element matched by this finder.
no setterinherited
parent Finder
Another Finder that will run first.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(Iterable<Element> candidates) Iterable<Element>
Returns all the elements in the given list that match this finder's pattern.
override
at(int index) Finder
Returns a variant of this finder that only matches the element at the given index matched by this finder.
inherited
evaluate() Iterable<Element>
Returns the current result. If precache was called and returned true, this will cheaply return the result that was computed then. Otherwise, it creates a new iterable to compute the answer.
inherited
filter(Iterable<Element> parentCandidates) Iterable<Element>
Return another Iterable when given an Iterable of candidates from a parent Finder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
precache() bool
Attempts to evaluate the finder. Returns whether any elements in the tree matched the finder. If any did, then the result is cached and can be obtained from evaluate.
inherited
toString() String
A string representation of this object.
inherited

Operators

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