org.antlr.stringtemplate.language
Class ChunkToken

java.lang.Object
  extended byantlr.Token
      extended byantlr.CommonToken
          extended byorg.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 inherited from class antlr.Token
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP
 
Constructor Summary
ChunkToken()
           
ChunkToken(int type, java.lang.String text, java.lang.String indentation)
           
 
Method Summary
 java.lang.String getIndentation()
           
 void setIndentation(java.lang.String indentation)
           
 java.lang.String toString()
           
 
Methods inherited from class antlr.CommonToken
getColumn, getLine, getText, setColumn, setLine, setText
 
Methods inherited from class antlr.Token
getFilename, getType, setFilename, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChunkToken

public ChunkToken()

ChunkToken

public ChunkToken(int type,
                  java.lang.String text,
                  java.lang.String indentation)
Method Detail

getIndentation

public java.lang.String getIndentation()

setIndentation

public void setIndentation(java.lang.String indentation)

toString

public java.lang.String toString()