Package redempt.redlex.debug
Class DebugToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.debug.DebugToken
- All Implemented Interfaces:
ParentToken
A wrapper for tokens that reports additional information for debug purposes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Token
findForward
(String str, int pos, LexContext ctx) int
void
setChildren
(TokenType[] children) tryTokenize
(String str, int pos, LexContext ctx) Methods inherited from class redempt.redlex.data.TokenType
getFirstCharacters, getId, getLexer, getMessage, getName, nameMatches, replacePlaceholders, setLexer, setName, toString, walk
-
Constructor Details
-
DebugToken
-
-
Method Details
-
getHistory
- Returns:
- The DebugHistory this token is reporting to
-
tryTokenize
- Overrides:
tryTokenize
in classTokenType
-
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
-