Package ortus.boxlang.runtime.runnables
Class BoxTemplate
java.lang.Object
ortus.boxlang.runtime.runnables.BoxTemplate
- All Implemented Interfaces:
IBoxRunnable,ITemplateRunnable
- Direct Known Subclasses:
Phase1,Phase1Switch,Phase1TryCatch,Phase2Closure,Phase2Lambda,Phase2UDF
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void_invoke(IBoxContext context) This method is called by the invoke method, it is the actual implementation of the templateabstract List<ImportDefinition> The imports for this runnableabstract ObjectThe AST (abstract syntax tree) of the runnableabstract LocalDateTimeThe date the template was compiledabstract longThe version of the BoxLang runtimeabstract ResolvedFilePathThe path to the templatevoidinvoke(IBoxContext context) Invoke a BoxLang templateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ortus.boxlang.runtime.runnables.IBoxRunnable
getSourceType
-
Constructor Details
-
BoxTemplate
public BoxTemplate()
-
-
Method Details
-
invoke
Invoke a BoxLang template- Parameters:
context- The context to invoke the template with
-
getImports
The imports for this runnable- Specified by:
getImportsin interfaceIBoxRunnable
-
_invoke
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:
getRunnableCompileVersionin interfaceIBoxRunnable
-
getRunnableCompiledOn
The date the template was compiled- Specified by:
getRunnableCompiledOnin interfaceIBoxRunnable
-
getRunnableAST
The AST (abstract syntax tree) of the runnable- Specified by:
getRunnableASTin interfaceIBoxRunnable
-
getRunnablePath
The path to the template- Specified by:
getRunnablePathin interfaceIBoxRunnable
-