Class StringTemplateToken
java.lang.Object
antlr.Token
antlr.CommonToken
org.antlr.stringtemplate.language.StringTemplateToken
- All Implemented Interfaces:
Cloneable
public class StringTemplateToken
extends antlr.CommonToken
-
Field Summary
FieldsModifier and TypeFieldDescriptionTrack any args for anonymous templates like invalid input: '<'tokens,rules:{t,r |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. Fields 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
ConstructorsConstructorDescriptionStringTemplateToken
(int type, String text) StringTemplateToken
(int type, String text, List args) StringTemplateToken
(String text) -
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
-
args
Track any args for anonymous templates like invalid input: '<'tokens,rules:{t,r |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 Details
-
StringTemplateToken
public StringTemplateToken() -
StringTemplateToken
-
StringTemplateToken
-
StringTemplateToken
-
-
Method Details
-
toString
- Overrides:
toString
in classantlr.CommonToken
-