SimpleBanListValidator class abstract
A helper class used to have a list of banned token types before and after it among other things.
- Inheritance
- Implementers
Constructors
Properties
- bannedLeadingSelf → bool
-
Can the leading token be the same as this.
final
-
bannedLeadingTokenTypes
→ List<
TokenType> -
A list containing all the banned token types before it.
final
- bannedTrailingSelf → bool
-
Can the trailing token be the same as this.
final
-
bannedTrailingTokenTypes
→ List<
TokenType> -
A list containing all the banned token types after it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMultiChar → bool
-
Can the token be composed of multiple characters.
no setterinherited
- leadingCanBeNull → bool
-
Can the leading token be null.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trailingCanBeNull → bool
-
Cab the trailing token be null.
no setter
Methods
-
additionalFactor(
ComputeContext ctx, String rawBuildingToken) → bool - An external additional factor,
-
createToken(
ComputeContext ctx, String rawValue, int globalOffset) → Token< TokenType> -
Creates the token.
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 -
Signals the caller if the token type is compatible with the next and
previous tokens.
inherited
-
validateNext(
ComputeContext ctx, String rawBuildingToken, Token< TokenType> ? nextToken) → bool -
Signals the caller if the token type is compatible with the next token.
override
-
validateNextType(
ComputeContext ctx, String rawBuildingToken, TokenType? nextTokenType) → bool -
Signals the caller if the token type is compatible with the next type of
token.
override
-
validatePrevious(
ComputeContext ctx, String rawBuildingToken, Token< TokenType> ? previousToken) → bool -
Signals the caller if the token type is compatible with the previous
token.
override
-
validatePreviousType(
ComputeContext ctx, String rawBuildingToken, TokenType? previousTokenType) → bool -
Signals the caller is the token type is compatible with the previous type
of token.
override
-
validateType(
ComputeContext ctx, TokenType? previousTokenType, String rawBuildingToken, TokenType? nextTokenType) → bool -
Signals the caller if the token type is compatible with the next and
previous types of tokens.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited