Package redempt.redlex.token
Class RepeatingToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.token.RepeatingToken
- All Implemented Interfaces:
ParentToken
-
Constructor Summary
ConstructorDescriptionRepeatingToken
(String name, TokenType token) RepeatingToken
(String name, TokenType token, int minMatches, int maxMatches) -
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
-
RepeatingToken
-
RepeatingToken
-
-
Method Details
-
findForward
- Specified by:
findForward
in classTokenType
-
minLength
public int minLength() -
calcFirstCharacters
- Specified by:
calcFirstCharacters
in classTokenType
-
getChildren
- Specified by:
getChildren
in interfaceParentToken
-
setChildren
- Specified by:
setChildren
in interfaceParentToken
-