Class ChunkToken
java.lang.Object
antlr.Token
antlr.CommonToken
org.antlr.stringtemplate.language.ChunkToken
- All Implemented Interfaces:
Cloneable
public class ChunkToken
extends antlr.CommonToken
Tracks the various string and attribute chunks discovered
by the lexer. Subclassed CommonToken so that I could pass
the indentation to the parser, which will add it to the
ASTExpr created for the $...$ attribute reference.
-
Field Summary
FieldsFields inherited from class antlr.CommonToken
col, line, text
Fields inherited from class antlr.Token
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class antlr.CommonToken
getColumn, getLine, getText, setColumn, setLine, setText
Methods inherited from class antlr.Token
getFilename, getType, setFilename, setType
-
Field Details
-
indentation
-
-
Constructor Details
-
ChunkToken
public ChunkToken() -
ChunkToken
-
-
Method Details
-
getIndentation
-
setIndentation
-
toString
- Overrides:
toString
in classantlr.CommonToken
-