Package redempt.redlex.token
Class CharGroupToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.token.CharGroupToken
-
Constructor Summary
ConstructorDescriptionCharGroupToken
(String name, int min, int max) CharGroupToken
(String name, int min, int max, boolean inverted) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Token
findForward
(String str, int pos, LexContext ctx) int
hashCode()
int
Methods inherited from class redempt.redlex.data.TokenType
getFirstCharacters, getId, getLexer, getMessage, getName, nameMatches, replacePlaceholders, setLexer, setName, toString, tryTokenize, walk
-
Constructor Details
-
CharGroupToken
-
CharGroupToken
-
-
Method Details
-
findForward
- Specified by:
findForward
in classTokenType
-
minLength
public int minLength() -
calcFirstCharacters
- Specified by:
calcFirstCharacters
in classTokenType
-
hashCode
public int hashCode() -
equals
-