PrefixQuery class

Prefix-substring query: segments are matched via startsWith (signals) or contains (occurrences) at successive hierarchy depths.

Inheritance

Constructors

PrefixQuery(String rawQuery, {SearchTarget target = SearchTarget.signals})
Create a prefix query from rawQuery.

Properties

crossesBoundaries bool
Whether this query can match across hierarchy boundaries.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether the query is empty / trivial (should return no results).
no setterinherited
rawQuery String
The original user-supplied query string.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segmentCount int
Number of logical segments in the parsed query.
no setteroverride
segments List<String>
Non-empty segments parsed from the raw query.
latefinal
target SearchTarget
What this query matches — occurrences, signals, or both.
finalinherited

Methods

isComplete(int stateIndex) bool
Whether the query is fully consumed at stateIndex.
override
matchOccurrence(String occurrenceName, int stateIndex) Set<int>
Try matching an occurrence name at match state stateIndex.
override
matchSignal(String signalName, int stateIndex) bool
Whether signalName matches the query at state stateIndex.
override
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