Package redempt.redlex.token
Class WrapperToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.token.WrapperToken
- All Implemented Interfaces:
ParentToken
-
Constructor Summary
ConstructorDescriptionWrapperToken
(String name, TokenType child) Create a new TokenType with the given name -
Method Summary
Modifier and TypeMethodDescriptionprotected Token
findForward
(String str, int pos, LexContext ctx) int
void
setChildren
(TokenType[] children) Methods inherited from class redempt.redlex.data.TokenType
getFirstCharacters, getId, getLexer, getMessage, getName, nameMatches, replacePlaceholders, setLexer, setName, toString, tryTokenize, walk
-
Constructor Details
-
WrapperToken
Create a new TokenType with the given name- Parameters:
name
- The name for this TokenType
-
-
Method Details
-
getChildren
- Specified by:
getChildren
in interfaceParentToken
-
setChildren
- Specified by:
setChildren
in interfaceParentToken
-
findForward
- Specified by:
findForward
in classTokenType
-
minLength
public int minLength() -
calcFirstCharacters
- Specified by:
calcFirstCharacters
in classTokenType
-