Package ortus.boxlang.runtime.testing
Class Phase2Closure$closure1
java.lang.Object
ortus.boxlang.runtime.types.Function
ortus.boxlang.runtime.types.Closure
ortus.boxlang.runtime.testing.Phase2Closure$closure1
- All Implemented Interfaces:
Serializable,IBoxRunnable,IFunctionRunnable,IType
Phase 2 BoxLang
Example of Closure delcaration and execution
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ortus.boxlang.runtime.types.Function
Function.Access -
Field Summary
Fields inherited from class ortus.boxlang.runtime.types.Closure
defaultNameFields inherited from class ortus.boxlang.runtime.types.Function
$bx, ARGUMENT_COLLECTION, interceptorService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke(FunctionBoxContext context) Implement this method to invoke the actual function logicGet access modifier of the functionGet any annotations declared for this function, both the @annotation syntax and inline.Argument[]Get the arguments of the function.Get the contents of the documentation comment for this function.The imports for this runnablegetName()Get the name of the function.Get the return type of the function.The AST (abstract syntax tree) of the runnableThe date the template was compiledlongThe version of the BoxLang runtimeThe path to the templateThe original source typeMethods inherited from class ortus.boxlang.runtime.types.Closure
getDeclaringContext, getThisClass, isInClassMethods inherited from class ortus.boxlang.runtime.types.Function
asString, canOutput, createArgumentsScope, createArgumentsScope, createArgumentsScope, ensureReturnType, generateFunctionContext, generateFunctionContext, getBoxMeta, getDefaultOutput, getEnclosingClass, getMetaData, getModifiers, hasModifier, implementsSignature, invoke, requiresStrictArguments, signatureAsStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ortus.boxlang.runtime.types.IType
computeHashCode
-
Constructor Details
-
Phase2Closure$closure1
-
-
Method Details
-
getName
Description copied from class:FunctionGet the name of the function. -
getArguments
Description copied from class:FunctionGet the arguments of the function.- Specified by:
getArgumentsin classFunction- Returns:
- array of arguments
-
getReturnType
Description copied from class:FunctionGet the return type of the function.- Specified by:
getReturnTypein classFunction- Returns:
- return type
-
getAnnotations
Description copied from class:FunctionGet any annotations declared for this function, both the @annotation syntax and inline.- Specified by:
getAnnotationsin classFunction- Returns:
- function metadata
-
getDocumentation
Description copied from class:FunctionGet the contents of the documentation comment for this function.- Specified by:
getDocumentationin classFunction- Returns:
- function metadata
-
getAccess
Description copied from class:FunctionGet access modifier of the function -
getRunnablePath
Description copied from interface:IBoxRunnableThe path to the template -
getSourceType
The original source type -
getRunnableCompileVersion
public long getRunnableCompileVersion()The version of the BoxLang runtime- Specified by:
getRunnableCompileVersionin interfaceIBoxRunnable- Specified by:
getRunnableCompileVersionin classFunction
-
getRunnableCompiledOn
The date the template was compiled- Specified by:
getRunnableCompiledOnin interfaceIBoxRunnable- Specified by:
getRunnableCompiledOnin classFunction
-
getRunnableAST
The AST (abstract syntax tree) of the runnable- Specified by:
getRunnableASTin interfaceIBoxRunnable- Specified by:
getRunnableASTin classFunction
-
getImports
The imports for this runnable -
_invoke
Description copied from class:FunctionImplement this method to invoke the actual function logic
-