public class PackageVarInfo extends Object implements AttributeInfoPool
GlobalVarInfo represents a global variable or a constant in a compiled package.| Constructor and Description |
|---|
PackageVarInfo(int nameCPIndex,
String name,
int signatureCPIndex,
String typeSignature,
int globalMemIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeInfo(AttributeInfo.Kind attributeKind,
AttributeInfo attributeInfo) |
AttributeInfo |
getAttributeInfo(AttributeInfo.Kind attributeKind) |
AttributeInfo[] |
getAttributeInfoEntries() |
int |
getGlobalMemIndex() |
String |
getName() |
int |
getNameCPIndex() |
int |
getSignatureCPIndex() |
BType |
getType() |
String |
getTypeSignature() |
void |
setType(BType type) |
public int getNameCPIndex()
public String getName()
public int getSignatureCPIndex()
public String getTypeSignature()
public BType getType()
public void setType(BType type)
public AttributeInfo getAttributeInfo(AttributeInfo.Kind attributeKind)
getAttributeInfo in interface AttributeInfoPoolpublic void addAttributeInfo(AttributeInfo.Kind attributeKind, AttributeInfo attributeInfo)
addAttributeInfo in interface AttributeInfoPoolpublic int getGlobalMemIndex()
public AttributeInfo[] getAttributeInfoEntries()
getAttributeInfoEntries in interface AttributeInfoPoolCopyright © 2018 WSO2. All rights reserved.