public class ProgramFile extends Object implements ConstantPool, AttributeInfoPool
ProgramFile
is the runtime representation of a compiled Ballerina program.Modifier and Type | Field and Description |
---|---|
int |
currentPkgIndex |
static int |
EP_MAIN_FLAG |
static int |
EP_SERVICE_FLAG |
GlobalMemoryArea |
globalMemArea |
Constructor and Description |
---|
ProgramFile() |
public static final int EP_MAIN_FLAG
public static final int EP_SERVICE_FLAG
public int currentPkgIndex
public GlobalMemoryArea globalMemArea
public int getMagicValue()
public short getVersion()
public void setVersion(short version)
public int getEntryPkgCPIndex()
public void setEntryPkgCPIndex(int entryPkgCPIndex)
public String getEntryPkgName()
public void setEntryPkgName(String entryPkgName)
public PackageInfo getEntryPackage()
public void setEntryPackage(PackageInfo entryPackage)
public boolean isMainEPAvailable()
public void setMainEPAvailable(boolean mainFuncAvailable)
public boolean isServiceEPAvailable()
public void setDistributedTransactionEnabled(boolean distributedTransactionEnabled)
public boolean isDistributedTransactionEnabled()
public void setServiceEPAvailable(boolean servicesAvailable)
@Deprecated public ServerConnectorRegistry getServerConnectorRegistry()
@Deprecated public void setServerConnectorRegistry(ServerConnectorRegistry serverConnectorRegistry)
public void initializeGlobalMemArea()
public int addCPEntry(ConstantPoolEntry cpEntry)
addCPEntry
in interface ConstantPool
public ConstantPoolEntry getCPEntry(int index)
getCPEntry
in interface ConstantPool
public int getCPEntryIndex(ConstantPoolEntry cpEntry)
getCPEntryIndex
in interface ConstantPool
public ConstantPoolEntry[] getConstPoolEntries()
getConstPoolEntries
in interface ConstantPool
public PackageInfo getPackageInfo(String packageName)
public PackageInfo[] getPackageInfoEntries()
public void addPackageInfo(String packageName, PackageInfo packageInfo)
public LockableStructureType getGlobalMemoryBlock()
public Path getProgramFilePath()
public void setProgramFilePath(Path programFilePath)
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 void setDebugger(Debugger debugManager)
public Debugger getDebugger()
Copyright © 2018 WSO2. All rights reserved.