org.antlr.stringtemplate.language
Class ActionEvaluator
java.lang.Object
antlr.TreeParser
org.antlr.stringtemplate.language.ActionEvaluator
- All Implemented Interfaces:
- ActionEvaluatorTokenTypes
- public class ActionEvaluator
- extends antlr.TreeParser
- implements ActionEvaluatorTokenTypes
Fields inherited from class antlr.TreeParser |
ASTNULL |
Fields inherited from interface org.antlr.stringtemplate.language.ActionEvaluatorTokenTypes |
ANONYMOUS_TEMPLATE, APPLY, ARGS, ASSIGN, COLON, COMMA, CONDITIONAL, DOT, EOF, ESC_CHAR, ID, INCLUDE, INT, LITERAL_separator, LITERAL_super, LPAREN, NESTED_ANONYMOUS_TEMPLATE, NOT, NULL_TREE_LOOKAHEAD, PLUS, RPAREN, SEMI, STRING, TEMPLATE, VALUE, WS |
Method Summary |
int |
action(antlr.collections.AST _t)
|
java.util.Map |
argList(antlr.collections.AST _t,
java.util.Map initialContext)
|
void |
argumentAssignment(antlr.collections.AST _t,
java.util.Map argumentContext)
|
java.lang.Object |
attribute(antlr.collections.AST _t)
|
java.lang.Object |
expr(antlr.collections.AST _t)
|
java.lang.Object |
ifAtom(antlr.collections.AST _t)
|
boolean |
ifCondition(antlr.collections.AST _t)
|
void |
reportError(antlr.RecognitionException e)
|
void |
template(antlr.collections.AST _t,
java.util.Vector templatesToApply)
|
java.lang.Object |
templateApplication(antlr.collections.AST _t)
Apply template(s) to an attribute; can be applied to another apply
result. |
java.lang.Object |
templateInclude(antlr.collections.AST _t)
|
Methods inherited from class antlr.TreeParser |
getAST, getASTFactory, getTokenName, getTokenNames, match, panic, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tokenNames
public static final java.lang.String[] _tokenNames
ActionEvaluator
public ActionEvaluator(StringTemplate self,
ASTExpr chunk,
StringTemplateWriter out)
- Create an evaluator using attributes from self
ActionEvaluator
public ActionEvaluator()
reportError
public void reportError(antlr.RecognitionException e)
action
public final int action(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
expr
public final java.lang.Object expr(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
templateApplication
public final java.lang.Object templateApplication(antlr.collections.AST _t)
throws antlr.RecognitionException
- Apply template(s) to an attribute; can be applied to another apply
result.
- Throws:
antlr.RecognitionException
attribute
public final java.lang.Object attribute(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
templateInclude
public final java.lang.Object templateInclude(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
template
public final void template(antlr.collections.AST _t,
java.util.Vector templatesToApply)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
argList
public final java.util.Map argList(antlr.collections.AST _t,
java.util.Map initialContext)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
ifCondition
public final boolean ifCondition(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
ifAtom
public final java.lang.Object ifAtom(antlr.collections.AST _t)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
argumentAssignment
public final void argumentAssignment(antlr.collections.AST _t,
java.util.Map argumentContext)
throws antlr.RecognitionException
- Throws:
antlr.RecognitionException