Package ortus.boxlang.runtime.types
Class AbstractFunction
java.lang.Object
ortus.boxlang.runtime.types.Function
ortus.boxlang.runtime.types.AbstractFunction
- All Implemented Interfaces:
Serializable,IBoxRunnable,IFunctionRunnable,IType
A BoxLang abstract Function.
I am a concrete class and will not be extended by a compiled runnable
- 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.Function
$bx, ARGUMENT_COLLECTION, interceptorService -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFunction(Key name, Argument[] arguments, String returnType, Function.Access access, IStruct annotations, IStruct documentation, String sourceObjectName, String sourceObjectType) Constructor Create a new abstract function. -
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 runnableGet the date the template was compiledlongGet the version of the BoxLang runtimeThe path to the templateGet the name of the source objectGet the type of the source objectThe original source typeMethods 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
-
Method Details
-
getName
Get the name of the function. -
getArguments
Get the arguments of the function.- Specified by:
getArgumentsin classFunction- Returns:
- array of arguments
-
getReturnType
Get the return type of the function.- Specified by:
getReturnTypein classFunction- Returns:
- return type
-
getAnnotations
Get any annotations declared for this function, both the @annotation syntax and inline.- Specified by:
getAnnotationsin classFunction- Returns:
- function metadata
-
getDocumentation
Get the contents of the documentation comment for this function.- Specified by:
getDocumentationin classFunction- Returns:
- function metadata
-
getAccess
Get access modifier of the function -
getSourceObjectName
Get the name of the source object- Returns:
-
getSourceObjectType
Get the type of the source object- Returns:
-
_invoke
Implement this method to invoke the actual function logic -
getRunnableCompileVersion
public long getRunnableCompileVersion()Get the version of the BoxLang runtime- Specified by:
getRunnableCompileVersionin interfaceIBoxRunnable- Specified by:
getRunnableCompileVersionin classFunction
-
getRunnableCompiledOn
Get 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
Description copied from interface:IBoxRunnableThe imports for this runnable -
getRunnablePath
Description copied from interface:IBoxRunnableThe path to the template -
getSourceType
Description copied from interface:IBoxRunnableThe original source type
-