Class Compiler

java.lang.Object
org.stringtemplate.v4.compiler.Compiler

public class Compiler extends Object
A compiler for a single template.
  • Field Details

  • Constructor Details

    • Compiler

      public Compiler()
    • Compiler

      public Compiler(STGroup group)
  • Method Details

    • compile

      public CompiledST compile(String template)
    • compile

      public CompiledST compile(String name, String template)
      Compile full template with unknown formal arguments.
    • compile

      public CompiledST compile(String srcName, String name, List<FormalArgument> args, String template, org.antlr.runtime.Token templateToken)
      Compile full template with respect to a list of formal arguments.
    • defineBlankRegion

      public static CompiledST defineBlankRegion(CompiledST outermostImpl, org.antlr.runtime.Token nameToken)
    • getNewSubtemplateName

      public static String getNewSubtemplateName()
    • reportMessageAndThrowSTException

      protected void reportMessageAndThrowSTException(org.antlr.runtime.TokenStream tokens, org.antlr.runtime.Token templateToken, org.antlr.runtime.Parser parser, org.antlr.runtime.RecognitionException re)