| java.lang.Object javassist.bytecode.AttributeInfo
All known Subclasses: javassist.bytecode.CodeAttribute, javassist.bytecode.AnnotationDefaultAttribute, javassist.bytecode.InnerClassesAttribute, javassist.bytecode.SourceFileAttribute, javassist.bytecode.StackMapTable, javassist.bytecode.ExceptionsAttribute, javassist.bytecode.ParameterAnnotationsAttribute, javassist.bytecode.DeprecatedAttribute, javassist.bytecode.SignatureAttribute, javassist.bytecode.SyntheticAttribute, javassist.bytecode.AnnotationsAttribute, javassist.bytecode.LineNumberAttribute, javassist.bytecode.ConstantAttribute, javassist.bytecode.EnclosingMethodAttribute, javassist.bytecode.LocalVariableAttribute,
AttributeInfo | public class AttributeInfo (Code) | | attribute_info structure.
|
AttributeInfo | protected AttributeInfo(ConstPool cp, int attrname, byte[] attrinfo)(Code) | | |
AttributeInfo | public AttributeInfo(ConstPool cp, String attrname, byte[] attrinfo)(Code) | | Constructs an attribute_info structure.
Parameters: cp - constant pool table Parameters: attrname - attribute name Parameters: attrinfo - info fieldof attribute_info structure. |
copy | public AttributeInfo copy(ConstPool newCp, Map classnames)(Code) | | Makes a copy. Class names are replaced according to the
given Map object.
Parameters: newCp - the constant pool table used by the new copy. Parameters: classnames - pairs of replaced and substitutedclass names. |
get | public byte[] get()(Code) | | Returns the info field
of this attribute_info structure.
This method is not available if the object is an instance
of CodeAttribute .
|
getConstPool | public ConstPool getConstPool()(Code) | | Returns a constant pool table.
|
getName | public String getName()(Code) | | Returns an attribute name.
|
length | public int length()(Code) | | Returns the length of this attribute_info
structure.
The returned value is attribute_length + 6 .
|
set | public void set(byte[] newinfo)(Code) | | Sets the info field
of this attribute_info structure.
This method is not available if the object is an instance
of CodeAttribute .
|
|
|