Token class
A token represents a logical chunk of a string. For example, a typical tokenizer would break the string "1.23 <= 12.3" into three tokens: the number 1.23, a less-than-or-equal symbol, and the number 12.3. A token is a receptacle, and relies on a tokenizer to decide precisely how to divide a string into tokens.
Constructors
Properties
- column → int
-
The column number where the token is.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- line → int
-
The line number where the token is.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TokenType
-
The token type.
no setter
- value → String?
-
The token value.
no setter
Methods
-
equals(
dynamic obj) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited