Class ChunkToken
- java.lang.Object
-
- antlr.Token
-
- antlr.CommonToken
-
- org.antlr.stringtemplate.language.ChunkToken
-
- All Implemented Interfaces:
java.lang.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
Fields Modifier and Type Field Description protected java.lang.String
indentation
-
Constructor Summary
Constructors Constructor Description ChunkToken()
ChunkToken(int type, java.lang.String text, java.lang.String indentation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIndentation()
void
setIndentation(java.lang.String indentation)
java.lang.String
toString()
-