|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectproguard.classfile.AttrInfo
Representation of an attribute. Specific attributes have their representations sub-classed from this.
| Field Summary | |
protected static int |
CONSTANT_FIELD_SIZE
|
int |
u2attrNameIndex
|
Object |
visitorInfo
An extra field in which visitors can store information. |
| Constructor Summary | |
protected |
AttrInfo()
|
| Method Summary | |
void |
accept(ClassFile classFile,
AttrInfoVisitor attrInfoVisitor)
Accepts the given visitor. |
void |
accept(ClassFile classFile,
FieldInfo fieldInfo,
AttrInfoVisitor attrInfoVisitor)
Accepts the given visitor in the context of a field. |
void |
accept(ClassFile classFile,
MethodInfo methodInfo,
AttrInfoVisitor attrInfoVisitor)
Accepts the given visitor in the context of a method. |
void |
accept(ClassFile classFile,
MethodInfo methodInfo,
CodeAttrInfo codeAttrInfo,
AttrInfoVisitor attrInfoVisitor)
Accepts the given visitor in the context of a method's code. |
static AttrInfo |
create(DataInput din,
ClassFile cf)
Creates a new AttrInfo from the data passed. |
String |
getAttributeName(ClassFile classFile)
Returns the String name of the attribute; over-ride this in sub-classes. |
protected abstract int |
getAttrInfoLength()
Returns the length in bytes of the attribute. |
Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter. |
protected abstract void |
readInfo(DataInput din,
ClassFile cf)
Reads the data following the header. |
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)
Exports data following the header to a DataOutput stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int CONSTANT_FIELD_SIZE
public int u2attrNameIndex
public Object visitorInfo
| Constructor Detail |
protected AttrInfo()
| Method Detail |
public static AttrInfo create(DataInput din,
ClassFile cf)
throws IOException
IOException - if class file is corrupt or incomplete
public final void write(DataOutput dout)
throws IOException
IOExceptionpublic String getAttributeName(ClassFile classFile)
protected abstract int getAttrInfoLength()
protected abstract void readInfo(DataInput din,
ClassFile cf)
throws IOException
IOException
protected abstract void writeInfo(DataOutput dout)
throws IOException
IOException
public void accept(ClassFile classFile,
AttrInfoVisitor attrInfoVisitor)
public void accept(ClassFile classFile,
FieldInfo fieldInfo,
AttrInfoVisitor attrInfoVisitor)
public void accept(ClassFile classFile,
MethodInfo methodInfo,
AttrInfoVisitor attrInfoVisitor)
public void accept(ClassFile classFile,
MethodInfo methodInfo,
CodeAttrInfo codeAttrInfo,
AttrInfoVisitor attrInfoVisitor)
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 | ||||||||||