TerminalNodeImpl class

Inheritance
Implementers

Constructors

TerminalNodeImpl(Token symbol)

Properties

childCount int
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
parent ParseTree?
covariantgetter/setter pairoverride
payload Token?
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceInterval Interval
Return an Interval indicating the index in the TokenStream of the first and last token associated with this subtree. If this node is a leaf, then the interval represents a single token and has interval i..i for token index i.
no setteroverride
symbol Token
getter/setter pairoverride-getter
text String?
Return the combined text of all leaf nodes. Does not get any off-channel tokens (if any) so won't return whitespace and comments if they are sent to parser on hidden channel.
no setteroverride

Methods

accept<T>(ParseTreeVisitor<T> visitor) → T?
The ParseTreeVisitor needs a double dispatch method. */
override
getChild<T>(int i) ParseTree?
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toStringTree({Parser? parser}) String
Specialize toStringTree so that it can print out more information based upon the parser.
override

Operators

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