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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TokenfindForward(String str, int pos, LexContext ctx) intvoidsetChildren(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:
tryTokenizein classTokenType
-
findForward
- Specified by:
findForwardin classTokenType
-
minLength
public int minLength() -
calcFirstCharacters
- Specified by:
calcFirstCharactersin classTokenType
-
getChildren
- Specified by:
getChildrenin interfaceParentToken
-
setChildren
- Specified by:
setChildrenin interfaceParentToken
-