Class BoxTemplate

java.lang.Object
ortus.boxlang.runtime.runnables.BoxTemplate
All Implemented Interfaces:
IBoxRunnable, ITemplateRunnable
Direct Known Subclasses:
Phase1, Phase1Switch, Phase1TryCatch, Phase2Closure, Phase2Lambda, Phase2UDF

public abstract class BoxTemplate extends Object implements ITemplateRunnable
  • Constructor Details

    • BoxTemplate

      public BoxTemplate()
  • Method Details

    • invoke

      public void invoke(IBoxContext context)
      Invoke a BoxLang template
      Parameters:
      context - The context to invoke the template with
    • getImports

      public abstract List<ImportDefinition> getImports()
      The imports for this runnable
      Specified by:
      getImports in interface IBoxRunnable
    • _invoke

      public abstract void _invoke(IBoxContext context)
      This method is called by the invoke method, it is the actual implementation of the template
      Parameters:
      context - The context to invoke the template with
    • getRunnableCompileVersion

      public abstract long getRunnableCompileVersion()
      The version of the BoxLang runtime
      Specified by:
      getRunnableCompileVersion in interface IBoxRunnable
    • getRunnableCompiledOn

      public abstract LocalDateTime getRunnableCompiledOn()
      The date the template was compiled
      Specified by:
      getRunnableCompiledOn in interface IBoxRunnable
    • getRunnableAST

      public abstract Object getRunnableAST()
      The AST (abstract syntax tree) of the runnable
      Specified by:
      getRunnableAST in interface IBoxRunnable
    • getRunnablePath

      public abstract ResolvedFilePath getRunnablePath()
      The path to the template
      Specified by:
      getRunnablePath in interface IBoxRunnable