Class ActionEvaluator

java.lang.Object
antlr.TreeParser
org.antlr.stringtemplate.language.ActionEvaluator
All Implemented Interfaces:
ActionEvaluatorTokenTypes

public class ActionEvaluator extends antlr.TreeParser implements ActionEvaluatorTokenTypes
  • Field Details

    • self

      protected StringTemplate self
    • out

      protected StringTemplateWriter out
    • chunk

      protected ASTExpr chunk
    • _tokenNames

      public static final String[] _tokenNames
    • _tokenSet_0

      public static final antlr.collections.impl.BitSet _tokenSet_0
  • Constructor Details

  • Method Details

    • reportError

      public void reportError(antlr.RecognitionException e)
      Overrides:
      reportError in class antlr.TreeParser
    • action

      public final int action(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • expr

      public final Object expr(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • templateApplication

      public final 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 Object attribute(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • templateInclude

      public final Object templateInclude(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • function

      public final Object function(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • list

      public final Object list(antlr.collections.AST _t) throws antlr.RecognitionException
      create a new list of expressions as a new multi-value attribute
      Throws:
      antlr.RecognitionException
    • template

      public final void template(antlr.collections.AST _t, Vector templatesToApply) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • singleFunctionArg

      public final Object singleFunctionArg(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • ifCondition

      public final boolean ifCondition(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • ifAtom

      public final Object ifAtom(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • argList

      public final Map argList(antlr.collections.AST _t, StringTemplate embedded, Map initialContext) throws antlr.RecognitionException
      self is assumed to be the enclosing context as foo(x=y) must find y in the template that encloses the ref to foo(x=y). We must pass in the embedded template (the one invoked) so we can check formal args in rawSetArgumentAttribute.
      Throws:
      antlr.RecognitionException
    • argumentAssignment

      public final void argumentAssignment(antlr.collections.AST _t, StringTemplate embedded, Map argumentContext) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • singleTemplateArg

      public final void singleTemplateArg(antlr.collections.AST _t, StringTemplate embedded, Map argumentContext) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException