public class ProgramFile extends Object implements ConstantPool, AttributeInfoPool
ProgramFile is the runtime representation of a compiled Ballerina program.| Modifier and Type | Field and Description |
|---|---|
static int |
EP_MAIN_FLAG |
static int |
EP_SERVICE_FLAG |
| Constructor and Description |
|---|
ProgramFile() |
public static final int EP_MAIN_FLAG
public static final int EP_SERVICE_FLAG
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 int addCPEntry(ConstantPoolEntry cpEntry)
addCPEntry in interface ConstantPoolpublic ConstantPoolEntry getCPEntry(int index)
getCPEntry in interface ConstantPoolpublic int getCPEntryIndex(ConstantPoolEntry cpEntry)
getCPEntryIndex in interface ConstantPoolpublic ConstantPoolEntry[] getConstPoolEntries()
getConstPoolEntries in interface ConstantPoolpublic 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 AttributeInfoPoolpublic void addAttributeInfo(AttributeInfo.Kind attributeKind, AttributeInfo attributeInfo)
addAttributeInfo in interface AttributeInfoPoolpublic AttributeInfo[] getAttributeInfoEntries()
getAttributeInfoEntries in interface AttributeInfoPoolpublic void setDebugger(Debugger debugManager)
public Debugger getDebugger()
Copyright © 2018 WSO2. All rights reserved.