public class WorkerInfo extends Object implements AttributeInfoPool
WorkerInfo
represents a worker in Ballerina program file.Constructor and Description |
---|
WorkerInfo(int workerNameCPIndex,
String workerName) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeInfo(AttributeInfo.Kind attributeKind,
AttributeInfo attributeInfo) |
int |
addForkJoinInfo(ForkjoinInfo forkjoinInfo) |
AttributeInfo |
getAttributeInfo(AttributeInfo.Kind attributeKind) |
AttributeInfo[] |
getAttributeInfoEntries() |
CodeAttributeInfo |
getCodeAttributeInfo() |
ForkjoinInfo[] |
getForkjoinInfos() |
WorkerDataChannelInfo |
getWorkerDataChannelInfoForForkJoin() |
String |
getWorkerName() |
int |
getWorkerNameCPIndex() |
int |
getWrkrDtChnlRefCPIndex() |
void |
setCodeAttributeInfo(CodeAttributeInfo codeAttributeInfo) |
void |
setForkjoinInfos(ForkjoinInfo[] forkjoinInfos) |
void |
setWorkerDataChannelInfoForForkJoin(WorkerDataChannelInfo workerDataChannelInfoForForkJoin) |
void |
setWrkrDtChnlRefCPIndex(int wrkrDtChnlRefCPIndex) |
public WorkerInfo(int workerNameCPIndex, String workerName)
public String getWorkerName()
public int getWorkerNameCPIndex()
public CodeAttributeInfo getCodeAttributeInfo()
public void setCodeAttributeInfo(CodeAttributeInfo codeAttributeInfo)
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
public int getWrkrDtChnlRefCPIndex()
public void setWrkrDtChnlRefCPIndex(int wrkrDtChnlRefCPIndex)
public WorkerDataChannelInfo getWorkerDataChannelInfoForForkJoin()
public void setWorkerDataChannelInfoForForkJoin(WorkerDataChannelInfo workerDataChannelInfoForForkJoin)
public ForkjoinInfo[] getForkjoinInfos()
public int addForkJoinInfo(ForkjoinInfo forkjoinInfo)
public void setForkjoinInfos(ForkjoinInfo[] forkjoinInfos)
Copyright © 2018 WSO2. All rights reserved.