public class CallableUnitInfo extends Object implements AttributeInfoPool, WorkerInfoPool
CallableUnitInfo
contains common metadata of a Ballerina function/resource/action in the program file.Modifier and Type | Class and Description |
---|---|
static class |
CallableUnitInfo.WorkerSet
This represents a worker set with different execution roles.
|
Modifier and Type | Field and Description |
---|---|
BType |
attachedToType |
int |
attachedToTypeCPIndex |
protected Map<AttributeInfo.Kind,AttributeInfo> |
attributeInfoMap |
protected WorkerInfo |
defaultWorkerInfo |
protected boolean |
isNative |
protected String |
name |
protected int |
nameCPIndex |
protected BType[] |
paramTypes |
WorkerDataIndex |
paramWorkerIndex |
protected int |
pkgCPIndex |
protected String |
pkgPath |
protected BType[] |
retParamTypes |
WorkerDataIndex |
retWorkerIndex |
protected String |
signature |
protected int |
signatureCPIndex |
protected Map<String,WorkerInfo> |
workerInfoMap |
Constructor and Description |
---|
CallableUnitInfo() |
protected String pkgPath
protected String name
protected boolean isNative
protected int pkgCPIndex
protected int nameCPIndex
protected BType[] paramTypes
protected BType[] retParamTypes
protected int signatureCPIndex
protected String signature
public int attachedToTypeCPIndex
public BType attachedToType
protected Map<AttributeInfo.Kind,AttributeInfo> attributeInfoMap
protected WorkerInfo defaultWorkerInfo
protected Map<String,WorkerInfo> workerInfoMap
public WorkerDataIndex paramWorkerIndex
public WorkerDataIndex retWorkerIndex
public String getName()
public String getPkgPath()
public void setName(String name)
public int getPackageCPIndex()
public PackageInfo getPackageInfo()
public int getNameCPIndex()
public void setNameCPIndex(int nameCPIndex)
public void setPackageInfo(PackageInfo packageInfo)
public boolean isNative()
public void setNative(boolean aNative)
public BType[] getParamTypes()
public void setParamTypes(BType[] paramTypes)
public BType[] getRetParamTypes()
public void setRetParamTypes(BType[] retParamType)
public boolean hasReturnType()
public String getSignature()
public void setSignature(String signature)
public int getSignatureCPIndex()
public void setSignatureCPIndex(int signatureCPIndex)
public WorkerInfo getDefaultWorkerInfo()
public void setDefaultWorkerInfo(WorkerInfo defaultWorkerInfo)
public WorkerInfo getWorkerInfo(String workerName)
public void addWorkerInfo(String workerName, WorkerInfo workerInfo)
public Map<String,WorkerInfo> getWorkerInfoMap()
public CallableUnitInfo.WorkerSet getWorkerSet()
public AttributeInfo getAttributeInfo(AttributeInfo.Kind attributeKind)
getAttributeInfo
in interface AttributeInfoPool
public void addAttributeInfo(AttributeInfo.Kind attributeKind, AttributeInfo attributeInfo)
addAttributeInfo
in interface AttributeInfoPool
public AttributeInfo[] getAttributeInfoEntries()
getAttributeInfoEntries
in interface AttributeInfoPool
@Deprecated public AnnAttachmentInfo getAnnotationAttachmentInfo(String packageName, String annotationName)
public void addWorkerDataChannelInfo(WorkerDataChannelInfo workerDataChannelInfo)
addWorkerDataChannelInfo
in interface WorkerInfoPool
public WorkerDataChannelInfo getWorkerDataChannelInfo(String name)
getWorkerDataChannelInfo
in interface WorkerInfoPool
public WorkerDataChannelInfo[] getWorkerDataChannelInfo()
getWorkerDataChannelInfo
in interface WorkerInfoPool
public NativeCallableUnit getNativeCallableUnit()
public void setNativeCallableUnit(NativeCallableUnit nativeCallableUnit)
Copyright © 2018 WSO2. All rights reserved.