SpecQueryMatch class
One node matched by a SpecQuery (the llm_and_d4rt_tools.md §6 cursor record).
Constructors
-
SpecQueryMatch({required String path, required SpecNodeKind kind, String? classId, String? headline, String? snippet, List<
SpecMatchSpan> matchSpans = const []}) -
pathandkindidentify the hit and are always known.snippetandmatchSpansare populated together and only for a query that carried atextdimension — a purely structural query leaves both at their defaults, so an emptymatchSpansnever has to be read as "searched but found nothing".headlineandclassIdmirror the node and stay null where the node itself has neither.const
Properties
- classId → String?
-
The model class the node is (
nullfor value leaves and list containers).final - hashCode → int
-
The hash code for this object.
no setterinherited
- headline → String?
-
The node's headline — stored if the author set one, else the model's doc
comment (
nullwhen neither exists).final - kind → SpecNodeKind
-
What kind of node the path lands on.
final
-
matchSpans
→ List<
SpecMatchSpan> -
The spans within snippet the
textpattern matched (empty for non-text queries).final - path → String
-
The globally-unique section-ID path the node lives at.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snippet → String?
-
The matched text, when the query carried a
textdimension (nullotherwise) — the value/headline that the pattern hit.final
Methods
-
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.
inherited