Package redempt.redlex.token
Class CharGroupToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.token.CharGroupToken
-
Constructor Summary
ConstructorsConstructorDescriptionCharGroupToken(String name, int min, int max) CharGroupToken(String name, int min, int max, boolean inverted) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharacterMatches(String input, int pos, int offset) booleaninthashCode()booleanlengthMatches(int length) intintMethods inherited from class redempt.redlex.data.TokenType
findForward, getFirstCharacters, getLexer, getMessage, getName, nameMatches, replacePlaceholders, setLexer, setName, toString, walk
-
Constructor Details
-
CharGroupToken
-
CharGroupToken
-
-
Method Details
-
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
-
hashCode
public int hashCode() -
equals
-