Package redempt.redlex.token
Class StringChoiceToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.token.StringChoiceToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancharacterMatches(String input, int pos, int offset) protected TokenfindForward(String str, int pos, LexContext ctx) booleanlengthMatches(int length) intintMethods inherited from class redempt.redlex.data.TokenType
getFirstCharacters, getId, getLexer, getMessage, getName, nameMatches, replacePlaceholders, setLexer, setName, toString, tryTokenize, walk
-
Constructor Details
-
StringChoiceToken
-
-
Method Details
-
findForward
- Overrides:
findForwardin classTokenType
-
characterMatches
- Specified by:
characterMatchesin classTokenType
-
lengthMatches
public boolean lengthMatches(int length) - Specified by:
lengthMatchesin classTokenType
-
minLength
public int minLength() -
maxLength
public int maxLength() -
calcFirstCharacters
- Specified by:
calcFirstCharactersin classTokenType
-