Top Fields Constructors Methods
org.antlr.stringtemplate.language

public Class StringTemplateToken

extends CommonToken
Class Inheritance
Imports
antlr.CommonToken, java.util.List

Field Summary

Modifier and TypeField and Description
public List<E>
args

Track any args for anonymous templates like <tokens,rules:{t,r | The lexer in action.g returns a single token ANONYMOUS_TEMPLATE and so I need to have it parse args in the lexer and make them available for when I build the anonymous template.

Inherited from antlr.CommonToken:
collinetext

Constructor Summary

AccessConstructor and Description
public
public
StringTemplateToken(int type, String text)

public
public
StringTemplateToken(int type, String text, List<E> args)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides antlr.CommonToken.toString.

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

Field Detail

argsback to summary
public List<E> args

Track any args for anonymous templates like then }> The lexer in action.g returns a single token ANONYMOUS_TEMPLATE and so I need to have it parse args in the lexer and make them available for when I build the anonymous template.

Constructor Detail

StringTemplateTokenback to summary
public StringTemplateToken()
StringTemplateTokenback to summary
public StringTemplateToken(int type, String text)
StringTemplateTokenback to summary
public StringTemplateToken(String text)
StringTemplateTokenback to summary
public StringTemplateToken(int type, String text, List<E> args)

Method Detail

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.