| java.lang.Object COM.rl.obf.classfile.CpInfo
All known Subclasses: COM.rl.obf.classfile.RefCpInfo, COM.rl.obf.classfile.FloatCpInfo, COM.rl.obf.classfile.IntegerCpInfo, COM.rl.obf.classfile.NameAndTypeCpInfo, COM.rl.obf.classfile.StringCpInfo, COM.rl.obf.classfile.LongCpInfo, COM.rl.obf.classfile.Utf8CpInfo, COM.rl.obf.classfile.ClassCpInfo, COM.rl.obf.classfile.DoubleCpInfo,
CpInfo | abstract public class CpInfo implements ClassConstants(Code) | | Representation of an entry in the ConstantPool. Specific types of entry
have their representations sub-classed from this.
author: Mark Welsh |
Constructor Summary | |
protected | CpInfo(int tag) |
Method Summary | |
public static CpInfo | create(DataInput din) Create a new CpInfo from the data passed. | public void | decRefCount() Decrement the reference count. | public void | dump(PrintWriter pw, ClassFile cf, int index) Dump the content of the class file to the specified file (used for debugging). | public int | getRefCount() Return the reference count. | public void | incRefCount() Increment the reference count. | protected void | markNTRefs(ConstantPool pool) Check for NameAndType references to constant pool and mark them; over-ride this in sub-classes. | protected void | markUtf8Refs(ConstantPool pool) Check for Utf8 references to constant pool and mark them; over-ride this in sub-classes. | abstract protected void | readInfo(DataInput din) Read the 'info' data following the u1tag byte; over-ride this in sub-classes. | public void | resetRefCount() Reset the reference count to zero. | public void | write(DataOutput dout) Export the representation to a DataOutput stream. | abstract protected void | writeInfo(DataOutput dout) Write the 'info' data following the u1tag byte; over-ride this in sub-classes. |
refCount | protected int refCount(Code) | | |
CpInfo | protected CpInfo(int tag)(Code) | | |
decRefCount | public void decRefCount() throws Exception(Code) | | Decrement the reference count.
|
getRefCount | public int getRefCount()(Code) | | Return the reference count.
|
incRefCount | public void incRefCount()(Code) | | Increment the reference count.
|
markNTRefs | protected void markNTRefs(ConstantPool pool) throws Exception(Code) | | Check for NameAndType references to constant pool and mark them; over-ride this in sub-classes.
|
markUtf8Refs | protected void markUtf8Refs(ConstantPool pool) throws Exception(Code) | | Check for Utf8 references to constant pool and mark them; over-ride this in sub-classes.
|
readInfo | abstract protected void readInfo(DataInput din) throws Exception(Code) | | Read the 'info' data following the u1tag byte; over-ride this in sub-classes.
|
resetRefCount | public void resetRefCount()(Code) | | Reset the reference count to zero.
|
writeInfo | abstract protected void writeInfo(DataOutput dout) throws Exception(Code) | | Write the 'info' data following the u1tag byte; over-ride this in sub-classes.
|
|
|