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[]
_tokenNames
static antlr.collections.impl.BitSet
_tokenSet_0
static antlr.collections.impl.BitSet
_tokenSet_1
static antlr.collections.impl.BitSet
_tokenSet_10
static antlr.collections.impl.BitSet
_tokenSet_11
static antlr.collections.impl.BitSet
_tokenSet_12
static antlr.collections.impl.BitSet
_tokenSet_13
static antlr.collections.impl.BitSet
_tokenSet_14
static antlr.collections.impl.BitSet
_tokenSet_2
static antlr.collections.impl.BitSet
_tokenSet_3
static antlr.collections.impl.BitSet
_tokenSet_4
static antlr.collections.impl.BitSet
_tokenSet_5
static antlr.collections.impl.BitSet
_tokenSet_6
static antlr.collections.impl.BitSet
_tokenSet_7
static antlr.collections.impl.BitSet
_tokenSet_8
static antlr.collections.impl.BitSet
_tokenSet_9
protected StringTemplate
self
-
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)
protected
ActionParser(antlr.TokenBuffer tokenBuf, int k)
ActionParser(antlr.TokenStream lexer)
protected
ActionParser(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.Map
action()
void
anonymousTemplate()
void
argList()
void
argumentAssignment()
void
atom()
protected void
buildTokenTypeASTClassMap()
void
expr()
void
function()
void
ifAtom()
void
ifCondition()
void
indirectTemplate()
Match (foo)() and (foo+".terse")()void
list()
void
listElement()
void
namedTemplate()
void
nonAlternatingTemplateExpr()
void
option(java.util.Map opts)
java.util.Map
optionList()
void
parallelArrayTemplateApplication()
void
primaryExpr()
void
reportError(antlr.RecognitionException e)
void
singleArg()
void
template()
void
templateInclude()
void
templatesExpr()
void
valueExpr()
-
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:
reportError
in classantlr.Parser
-
action
public final java.util.Map action() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
templatesExpr
public final void templatesExpr() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
optionList
public final java.util.Map optionList() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
ifCondition
public final void ifCondition() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
option
public final void option(java.util.Map opts) throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
nonAlternatingTemplateExpr
public final void nonAlternatingTemplateExpr() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
parallelArrayTemplateApplication
public final void parallelArrayTemplateApplication() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
expr
public final void expr() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
template
public final void template() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
anonymousTemplate
public final void anonymousTemplate() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
ifAtom
public final void ifAtom() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
primaryExpr
public final void primaryExpr() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
templateInclude
public final void templateInclude() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
atom
public final void atom() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
valueExpr
public final void valueExpr() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
function
public final void function() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
list
public final void list() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
singleArg
public final void singleArg() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
namedTemplate
public final void namedTemplate() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
argList
public final void argList() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
indirectTemplate
public final void indirectTemplate() throws antlr.RecognitionException, antlr.TokenStreamException
Match (foo)() and (foo+".terse")()- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
listElement
public final void listElement() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
argumentAssignment
public final void argumentAssignment() throws antlr.RecognitionException, antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
buildTokenTypeASTClassMap
protected void buildTokenTypeASTClassMap()
-
-