|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectproguard.classfile.CpInfo
Representation of an entry in the ConstantPool. Specific types of entry have their representations sub-classed from this.
| Field Summary | |
Object |
visitorInfo
An extra field in which visitors can store information. |
| Constructor Summary | |
CpInfo()
|
|
| Method Summary | |
abstract void |
accept(ClassFile classFile,
CpInfoVisitor cpInfoVisitor)
Accepts the given visitor. |
static CpInfo |
create(DataInput din)
Creates a new CpInfo from the data passed. |
static CpInfo |
createOrShare(DataInput din)
Creates a new CpInfo from the data passed, for UTF-8 and Class constant pool entries, or returns a shared object, for all other entries. |
abstract int |
getTag()
Returns the class pool info tag that specifies the entry type. |
Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter. |
protected abstract void |
readInfo(DataInput din)
Reads the 'info' data following the u1tag byte. |
void |
setVisitorInfo(Object visitorInfo)
Sets the visitor information of the visitor accepter. |
void |
write(DataOutput dout)
Exports the representation to a DataOutput stream. |
protected abstract void |
writeInfo(DataOutput dout)
Writes the 'info' data following the u1tag byte. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public Object visitorInfo
| Constructor Detail |
public CpInfo()
| Method Detail |
public static CpInfo create(DataInput din)
throws IOException
IOException - if the class file is corrupt or incomplete.
public static CpInfo createOrShare(DataInput din)
throws IOException
IOException - if the class file is corrupt or incomplete.
public void write(DataOutput dout)
throws IOException
IOExceptionpublic abstract int getTag()
protected abstract void readInfo(DataInput din)
throws IOException
IOException
protected abstract void writeInfo(DataOutput dout)
throws IOException
IOException
public abstract void accept(ClassFile classFile,
CpInfoVisitor cpInfoVisitor)
public Object getVisitorInfo()
VisitorAccepter
getVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(Object visitorInfo)
VisitorAccepter
setVisitorInfo in interface VisitorAccepter
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||