TokenClass class
The classes (or groups) of tokens with a similar use.
Constructors
- TokenClass(String name, [int precedence = NO_PRECEDENCE])
-
Initialize a newly created class of tokens to have the given name and
precedence.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the token class.
final
- precedence → int
-
The precedence of tokens of this class, or
0
if the such tokens do not represent an operator.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
- ADDITIVE_OPERATOR → const TokenClass
- A value used to indicate that the token type is an additive operator.
- ASSIGNMENT_OPERATOR → const TokenClass
- A value used to indicate that the token type is an assignment operator.
- BITWISE_AND_OPERATOR → const TokenClass
- A value used to indicate that the token type is a bitwise-and operator.
- BITWISE_OR_OPERATOR → const TokenClass
- A value used to indicate that the token type is a bitwise-or operator.
- BITWISE_XOR_OPERATOR → const TokenClass
- A value used to indicate that the token type is a bitwise-xor operator.
- CASCADE_OPERATOR → const TokenClass
- A value used to indicate that the token type is a cascade operator.
- CONDITIONAL_OPERATOR → const TokenClass
- A value used to indicate that the token type is a conditional operator.
- EQUALITY_OPERATOR → const TokenClass
- A value used to indicate that the token type is an equality operator.
- IF_NULL_OPERATOR → const TokenClass
- A value used to indicate that the token type is an if-null operator.
- LOGICAL_AND_OPERATOR → const TokenClass
- A value used to indicate that the token type is a logical-and operator.
- LOGICAL_OR_OPERATOR → const TokenClass
- A value used to indicate that the token type is a logical-or operator.
- MULTIPLICATIVE_OPERATOR → const TokenClass
- A value used to indicate that the token type is a multiplicative operator.
- NO_CLASS → const TokenClass
- A value used to indicate that the token type is not part of any specific class of token.
- RELATIONAL_OPERATOR → const TokenClass
- A value used to indicate that the token type is a relational operator.
- SHIFT_OPERATOR → const TokenClass
- A value used to indicate that the token type is a shift operator.
- UNARY_POSTFIX_OPERATOR → const TokenClass
- A value used to indicate that the token type is a unary operator.
- UNARY_PREFIX_OPERATOR → const TokenClass
- A value used to indicate that the token type is a unary operator.