SimpleTokenType class
Helper class to create simple tokens which cannot be computed
- Inheritance
-
- Object
- TokenType
- SimpleBanListValidator
- SimpleTokenType
- Mixed-in types
- Implementers
Constructors
- SimpleTokenType(String charToMatchAgainst, {required bool canBeFinal, required bool isMultiChar})
-
const
Properties
- bannedLeadingSelf → bool
-
finalinherited
-
bannedLeadingTokenTypes
→ List<
TokenType> -
finalinherited
- bannedTrailingSelf → bool
-
finalinherited
-
bannedTrailingTokenTypes
→ List<
TokenType> -
finalinherited
- canBeFinal → bool
-
final
- charToMatchAgainst → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMultiChar → bool
-
final
- leadingCanBeNull → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trailingCanBeNull → bool
-
no setterinherited
Methods
-
additionalFactor(
ComputeContext ctx, String rawBuildingToken) → bool -
override
-
createToken(
ComputeContext ctx, String rawValue, int globalOffset) → Token< TokenType> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
ComputeContext ctx, Token< TokenType> ? previousToken, String rawBuildingToken, Token<TokenType> ? nextToken) → bool -
inherited
-
validateNext(
ComputeContext ctx, String rawBuildingToken, Token< TokenType> ? nextToken) → bool -
inherited
-
validateNextType(
ComputeContext ctx, String rawBuildingToken, TokenType? nextTokenType) → bool -
inherited
-
validatePrevious(
ComputeContext ctx, String rawBuildingToken, Token< TokenType> ? previousToken) → bool -
inherited
-
validatePreviousType(
ComputeContext ctx, String rawBuildingToken, TokenType? previousTokenType) → bool -
inherited
-
validateType(
ComputeContext ctx, TokenType? previousTokenType, String rawBuildingToken, TokenType? nextTokenType) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited