RuleTagToken class

A Token object representing an entire subtree matched by a parser rule; e.g., {@code

Implemented types

Constructors

RuleTagToken(String ruleName, int bypassTokenType, [String? label])
Constructs a new instance of RuleTagToken with the specified rule name, bypass token type, and label.

Properties

bypassTokenType int
The token type for the current token. This is the token type assigned to the bypass alternative for the rule during ATN deserialization.
final
channel int
{@inheritDoc}
no setteroverride
charPositionInLine int
{@inheritDoc}
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inputStream CharStream?
{@inheritDoc}
no setteroverride
label String?
Gets the label associated with the rule tag.
final
line int
{@inheritDoc}
no setteroverride
ruleName String
Gets the name of the rule associated with this rule tag.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startIndex int
{@inheritDoc}
no setteroverride
stopIndex int
{@inheritDoc}
no setteroverride
text String
{@inheritDoc}
no setteroverride
tokenIndex int
{@inheritDoc}
no setteroverride
tokenSource TokenSource?
{@inheritDoc}
no setteroverride
type int
{@inheritDoc}
no setteroverride

Methods

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