Package redempt.redlex.token
Class StringToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.token.StringToken
-
Constructor Summary
ConstructorsConstructorDescriptionStringToken(String name, String string) StringToken(String name, String string, boolean caseSensitive) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharacterMatches(String input, int pos, int offset) booleaninthashCode()booleanbooleanlengthMatches(int length) intintMethods inherited from class redempt.redlex.data.TokenType
findForward, getFirstCharacters, getId, getLexer, getMessage, getName, nameMatches, replacePlaceholders, setLexer, setName, toString, walk
-
Constructor Details
-
StringToken
-
StringToken
-
-
Method Details
-
isCaseSensitive
public boolean isCaseSensitive() -
characterMatches
- Specified by:
characterMatchesin classTokenType
-
lengthMatches
public boolean lengthMatches(int length) - Specified by:
lengthMatchesin classTokenType
-
getString
-
minLength
public int minLength() -
maxLength
public int maxLength() -
calcFirstCharacters
- Specified by:
calcFirstCharactersin classTokenType
-
hashCode
public int hashCode() -
equals
-