| java.lang.Object COM.rl.obf.classfile.AttrInfo
All known Subclasses: COM.rl.obf.classfile.AnnotationsAttrInfo, COM.rl.obf.classfile.AnnotationDefaultAttrInfo, COM.rl.obf.classfile.ConstantValueAttrInfo, COM.rl.obf.classfile.EnclosingMethodAttrInfo, COM.rl.obf.classfile.LocalVariableTableAttrInfo, COM.rl.obf.classfile.LocalVariableTypeTableAttrInfo, COM.rl.obf.classfile.InnerClassesAttrInfo, COM.rl.obf.classfile.LineNumberTableAttrInfo, COM.rl.obf.classfile.ExceptionsAttrInfo, COM.rl.obf.classfile.ParameterAnnotationsAttrInfo, COM.rl.obf.classfile.StackMapTableAttrInfo, COM.rl.obf.classfile.SourceFileAttrInfo, COM.rl.obf.classfile.SignatureAttrInfo, COM.rl.obf.classfile.DeprecatedAttrInfo, COM.rl.obf.classfile.SyntheticAttrInfo, COM.rl.obf.classfile.CodeAttrInfo,
AttrInfo | public class AttrInfo implements ClassConstants(Code) | | Representation of an attribute. Specific attributes have their representations
sub-classed from this.
author: Mark Welsh |
Constructor Summary | |
protected | AttrInfo(ClassFile cf, int attrNameIndex, int attrLength) |
Method Summary | |
public static AttrInfo | create(DataInput din, ClassFile cf) Create a new AttrInfo from the data passed. | public void | dump(PrintStream ps) Provide debugging dump of this object. | protected int | getAttrInfoLength() Return the length in bytes of the attribute; over-ride this in sub-classes. | protected String | getAttrName() Return the String name of the attribute; over-ride this in sub-classes. | protected void | markUtf8Refs(ConstantPool pool) Check for Utf8 references to constant pool and mark them. | protected void | markUtf8RefsInInfo(ConstantPool pool) Check for Utf8 references in the 'info' data to the constant pool and
mark them; over-ride this in sub-classes. | protected void | readInfo(DataInput din) Read the data following the header; over-ride this in sub-classes. | protected void | remap(ClassFile cf, NameMapper nm) Do necessary name remapping. | protected void | trimAttrsExcept(String[] keepAttrs) Trim attributes from the classfile except those in the String[]. | final public void | write(DataOutput dout) Export the representation to a DataOutput stream. | public void | writeInfo(DataOutput dout) Export data following the header to a DataOutput stream; over-ride this in sub-classes. |
CONSTANT_FIELD_SIZE | final public static int CONSTANT_FIELD_SIZE(Code) | | |
AttrInfo | protected AttrInfo(ClassFile cf, int attrNameIndex, int attrLength)(Code) | | |
getAttrInfoLength | protected int getAttrInfoLength() throws Exception(Code) | | Return the length in bytes of the attribute; over-ride this in sub-classes.
|
getAttrName | protected String getAttrName() throws Exception(Code) | | Return the String name of the attribute; 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.
|
markUtf8RefsInInfo | protected void markUtf8RefsInInfo(ConstantPool pool) throws Exception(Code) | | Check for Utf8 references in the 'info' data to the constant pool and
mark them; over-ride this in sub-classes.
|
readInfo | protected void readInfo(DataInput din) throws Exception(Code) | | Read the data following the header; over-ride this in sub-classes.
|
trimAttrsExcept | protected void trimAttrsExcept(String[] keepAttrs) throws Exception(Code) | | Trim attributes from the classfile except those in the String[].
|
writeInfo | public void writeInfo(DataOutput dout) throws Exception(Code) | | Export data following the header to a DataOutput stream; over-ride this in sub-classes.
|
|
|