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