Top Description Fields Constructors Methods
org.antlr.stringtemplate.language

public Class ChunkToken

extends CommonToken
Class Inheritance
Imports
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

Modifier and TypeField and Description
protected String
Inherited from antlr.CommonToken:
collinetext

Constructor Summary

AccessConstructor and Description
public
public
ChunkToken(int type, String text, String indentation)

Method Summary

Modifier and TypeMethod and Description
public String
public void
setIndentation(String indentation)

public String
toString()

Overrides antlr.CommonToken.toString.

Returns a string representation of the object.
Inherited from antlr.CommonToken:
getColumngetLinegetTextsetColumnsetLinesetText

Field Detail

indentationback to summary
protected String indentation

Constructor Detail

ChunkTokenback to summary
public ChunkToken()
ChunkTokenback to summary
public ChunkToken(int type, String text, String indentation)

Method Detail

getIndentationback to summary
public String getIndentation()
setIndentationback to summary
public void setIndentation(String indentation)
toStringback to summary
public String toString()

Overrides antlr.CommonToken.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object