public interface CallableUnit extends BLangSymbol, Node
CallableUnit
represents Functions, Action or Resources.Modifier and Type | Method and Description |
---|---|
AnnotationAttachment[] |
getAnnotations()
Returns an arrays of annotations attached this callable unit.
|
BType[] |
getArgumentTypes()
Get Types of the return input arguments.
|
ParameterDef[] |
getParameterDefs()
Returns an arrays of parameters of this callable unit.
|
ParameterDef[] |
getReturnParameters()
Returns an arrays of return parameters (values) of this callable unit.
|
BType[] |
getReturnParamTypes()
Get Types of the return parameters.
|
VariableDef[] |
getVariableDefs()
Returns an arrays of variable declarations of this callable unit.
|
void |
setParameterTypes(BType[] parameterTypes)
Sets a
BType arrays containing the types of input parameters of this callable unit. |
void |
setReturnParamTypes(BType[] returnParamTypes)
Sets a
BType arrays containing the types of return parameters of this callable unit. |
getName, getPackagePath, isNative, isPublic
getNodeLocation, getWhiteSpaceDescriptor
AnnotationAttachment[] getAnnotations()
ParameterDef[] getParameterDefs()
VariableDef[] getVariableDefs()
ParameterDef[] getReturnParameters()
BType[] getReturnParamTypes()
void setReturnParamTypes(BType[] returnParamTypes)
BType
arrays containing the types of return parameters of this callable unit.returnParamTypes
- arrays of the return parametersBType[] getArgumentTypes()
void setParameterTypes(BType[] parameterTypes)
BType
arrays containing the types of input parameters of this callable unit.parameterTypes
- arrays of the input parametersCopyright © 2018 WSO2. All rights reserved.