| java.lang.Object com.yworks.yguard.obf.classfile.ConstantPool
ConstantPool | public class ConstantPool (Code) | | A representation of the data in a Java class-file's Constant Pool.
Constant Pool entries are managed by reference counting.
author: Mark Welsh |
Inner Class :class PoolAction | |
Constructor Summary | |
public | ConstantPool(ClassFile classFile, CpInfo[] cpInfo) Ctor, which initializes Constant Pool using an array of CpInfo. |
Method Summary | |
public int | addEntry(CpInfo entry) Add an entry to the constant pool and return its index. | public void | decRefCount(int i) Decrement the reference count for the specified element, blanking if Utf and refs are zero. | public Enumeration | elements() Return an Enumeration of all Constant Pool entries. | public CpInfo | getCpEntry(int i) Return the specified Constant Pool entry. | public void | incRefCount(int i) Increment the reference count for the specified element. | public int | length() Return the Constant Pool length. | public int | remapUtf8To(String newString, int oldIndex) Remap a specified Utf8 entry to the given value and return its new index. | public void | updateRefCount() Set the reference count for each element, using references from the owning ClassFile. |
ConstantPool | public ConstantPool(ClassFile classFile, CpInfo[] cpInfo)(Code) | | Ctor, which initializes Constant Pool using an array of CpInfo.
|
addEntry | public int addEntry(CpInfo entry)(Code) | | Add an entry to the constant pool and return its index.
|
decRefCount | public void decRefCount(int i)(Code) | | Decrement the reference count for the specified element, blanking if Utf and refs are zero.
|
elements | public Enumeration elements()(Code) | | Return an Enumeration of all Constant Pool entries.
|
getCpEntry | public CpInfo getCpEntry(int i)(Code) | | Return the specified Constant Pool entry.
|
incRefCount | public void incRefCount(int i)(Code) | | Increment the reference count for the specified element.
|
length | public int length()(Code) | | Return the Constant Pool length.
|
remapUtf8To | public int remapUtf8To(String newString, int oldIndex)(Code) | | Remap a specified Utf8 entry to the given value and return its new index.
|
updateRefCount | public void updateRefCount()(Code) | | Set the reference count for each element, using references from the owning ClassFile.
|
|
|