Package redempt.redlex.token
Class CharSetToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.token.CharSetToken
-
Constructor Summary
ConstructorsConstructorDescriptionCharSetToken(String name, boolean inverted, char... chars) CharSetToken(String name, char... chars) -
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
-
CharSetToken
-
CharSetToken
-
-
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
-