Class ActionParser
- java.lang.Object
-
- antlr.Parser
-
- antlr.LLkParser
-
- org.antlr.stringtemplate.language.ActionParser
-
- All Implemented Interfaces:
ActionParserTokenTypes
public class ActionParser extends antlr.LLkParser implements ActionParserTokenTypes
Parse the individual attribute expressions
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]_tokenNamesstatic antlr.collections.impl.BitSet_tokenSet_0static antlr.collections.impl.BitSet_tokenSet_1static antlr.collections.impl.BitSet_tokenSet_10static antlr.collections.impl.BitSet_tokenSet_11static antlr.collections.impl.BitSet_tokenSet_12static antlr.collections.impl.BitSet_tokenSet_13static antlr.collections.impl.BitSet_tokenSet_14static antlr.collections.impl.BitSet_tokenSet_2static antlr.collections.impl.BitSet_tokenSet_3static antlr.collections.impl.BitSet_tokenSet_4static antlr.collections.impl.BitSet_tokenSet_5static antlr.collections.impl.BitSet_tokenSet_6static antlr.collections.impl.BitSet_tokenSet_7static antlr.collections.impl.BitSet_tokenSet_8static antlr.collections.impl.BitSet_tokenSet_9protected StringTemplateself-
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
-
Fields inherited from interface org.antlr.stringtemplate.language.ActionParserTokenTypes
ANONYMOUS_TEMPLATE, APPLY, ARGS, ASSIGN, COLON, COMMA, CONDITIONAL, DOT, DOTDOTDOT, EOF, ESC_CHAR, FUNCTION, ID, INCLUDE, INT, LBRACK, LIST, LITERAL_elseif, LITERAL_first, LITERAL_last, LITERAL_length, LITERAL_rest, LITERAL_strip, LITERAL_super, LITERAL_trunc, LPAREN, MULTI_APPLY, NESTED_ANONYMOUS_TEMPLATE, NOT, NOTHING, NULL_TREE_LOOKAHEAD, PLUS, RBRACK, RPAREN, SEMI, SINGLEVALUEARG, STRING, TEMPLATE, TEMPLATE_ARGS, VALUE, WS, WS_CHAR
-
-
Constructor Summary
Constructors Modifier Constructor Description ActionParser(antlr.ParserSharedInputState state)ActionParser(antlr.TokenBuffer tokenBuf)protectedActionParser(antlr.TokenBuffer tokenBuf, int k)ActionParser(antlr.TokenStream lexer)protectedActionParser(antlr.TokenStream lexer, int k)ActionParser(antlr.TokenStream lexer, StringTemplate self)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Mapaction()voidanonymousTemplate()voidargList()voidargumentAssignment()voidatom()protected voidbuildTokenTypeASTClassMap()voidexpr()voidfunction()voidifAtom()voidifCondition()voidindirectTemplate()Match (foo)() and (foo+".terse")()voidlist()voidlistElement()voidnamedTemplate()voidnonAlternatingTemplateExpr()voidoption(java.util.Map opts)java.util.MapoptionList()voidparallelArrayTemplateApplication()voidprimaryExpr()voidreportError(antlr.RecognitionException e)voidsingleArg()voidtemplate()voidtemplateInclude()voidtemplatesExpr()voidvalueExpr()-
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
-
-
-
Field Detail
-
self
protected StringTemplate self
-
_tokenNames
public static final java.lang.String[] _tokenNames
-
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
-
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
-
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
-
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
-
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
-
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
-
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
-
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7
-
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
-
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9
-
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10
-
_tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_11
-
_tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_12
-
_tokenSet_13
public static final antlr.collections.impl.BitSet _tokenSet_13
-
_tokenSet_14
public static final antlr.collections.impl.BitSet _tokenSet_14
-
-
Constructor Detail
-
ActionParser
public ActionParser(antlr.TokenStream lexer, StringTemplate self)
-
ActionParser
protected ActionParser(antlr.TokenBuffer tokenBuf, int k)
-
ActionParser
public ActionParser(antlr.TokenBuffer tokenBuf)
-
ActionParser
protected ActionParser(antlr.TokenStream lexer, int k)
-
ActionParser
public ActionParser(antlr.TokenStream lexer)
-
ActionParser
public ActionParser(antlr.ParserSharedInputState state)
-
-
Method Detail
-
reportError
public void reportError(antlr.RecognitionException e)
- Overrides:
reportErrorin classantlr.Parser
-
action
public final java.util.Map action() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
templatesExpr
public final void templatesExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
optionList
public final java.util.Map optionList() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
ifCondition
public final void ifCondition() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
option
public final void option(java.util.Map opts) throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
nonAlternatingTemplateExpr
public final void nonAlternatingTemplateExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
parallelArrayTemplateApplication
public final void parallelArrayTemplateApplication() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
expr
public final void expr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
template
public final void template() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
anonymousTemplate
public final void anonymousTemplate() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
ifAtom
public final void ifAtom() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
primaryExpr
public final void primaryExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
templateInclude
public final void templateInclude() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
atom
public final void atom() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
valueExpr
public final void valueExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
function
public final void function() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
list
public final void list() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
singleArg
public final void singleArg() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
namedTemplate
public final void namedTemplate() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
argList
public final void argList() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
indirectTemplate
public final void indirectTemplate() throws antlr.RecognitionException, antlr.TokenStreamExceptionMatch (foo)() and (foo+".terse")()- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
listElement
public final void listElement() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
argumentAssignment
public final void argumentAssignment() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
buildTokenTypeASTClassMap
protected void buildTokenTypeASTClassMap()
-
-