ParseTreeMatch class
Represents the result of matching a ParseTree against a tree pattern.
Constructors
-
ParseTreeMatch(ParseTree tree, ParseTreePattern pattern, MultiMap<
String, ParseTree> labels, ParseTree? mismatchedNode) - Constructs a new instance of ParseTreeMatch from the specified parse tree and pattern.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ MultiMap<
String, ParseTree> -
Return a mapping from label →
list of nodes
.final - mismatchedNode → ParseTree?
-
Get the node at which we first detected a mismatch.
final
- pattern → ParseTreePattern
-
Get the tree pattern we are matching against.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- succeeded → bool
-
Gets a value indicating whether the match operation succeeded.
no setter
- tree → ParseTree
-
Get the parse tree we are trying to match to a pattern.
final
Methods
-
get(
String label) → ParseTree? -
Get the last node associated with a specific
label
. -
getAll(
String label) → List< ParseTree> - Return all nodes matching a rule or token tag with the specified label.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
{@inheritDoc}
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited