attribute_info structure.
ClassFile#getAttribute(String), MethodInfo#getAttribute(String), FieldInfo#getAttribute(String)
| Modifier and Type | Field and Description |
|---|---|
| protected ConstPool | |
| pack-priv byte[] | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| public | AttributeInfo(ConstPool
constant pool table cp, String attribute name attrname, byte[] info field
of attribute_info structure.Constructs an |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public AttributeInfo | |
| pack-priv static List | |
| public byte[] | |
| public ConstPool | |
| pack-priv static int | |
| public String | |
| pack-priv void | |
| pack-priv static void | |
| public int | |
| pack-priv static AttributeInfo | |
| pack-priv static AttributeInfo | |
| pack-priv static synchronized AttributeInfo | |
| pack-priv void | |
| pack-priv void | |
| pack-priv static void | |
| pack-priv static void | |
| public void | |
| pack-priv void | |
| pack-priv static void |
| constPool | back to summary |
|---|---|
| protected ConstPool constPool | |
| info | back to summary |
|---|---|
| pack-priv byte[] info | |
| name | back to summary |
|---|---|
| pack-priv int name | |
| AttributeInfo | back to summary |
|---|---|
| protected AttributeInfo(ConstPool cp, int attrname, byte[] attrinfo) | |
| AttributeInfo | back to summary |
|---|---|
| protected AttributeInfo(ConstPool cp, String attrname) | |
| AttributeInfo | back to summary |
|---|---|
| public AttributeInfo(ConstPool cp, String attrname, byte[] attrinfo) Constructs an | |
| AttributeInfo | back to summary |
|---|---|
| protected AttributeInfo(ConstPool cp, int n, DataInputStream in) throws IOException | |
| copy | back to summary |
|---|---|
| public AttributeInfo copy(ConstPool newCp, Map<String, String> classnames) Makes a copy. Class names are replaced according to the
given | |
| copyAll | back to summary |
|---|---|
| pack-priv static List | |
| get | back to summary |
|---|---|
| public byte[] get() Returns the This method is not available if the object is an instance
of | |
| getConstPool | back to summary |
|---|---|
| public ConstPool getConstPool() Returns a constant pool table. | |
| getLength | back to summary |
|---|---|
| pack-priv static int getLength(List<AttributeInfo> attributes) | |
| getName | back to summary |
|---|---|
| public String getName() Returns an attribute name. | |
| getRefClasses | back to summary |
|---|---|
| pack-priv void getRefClasses(Map<String, String> classnames) | |
| getRefClasses | back to summary |
|---|---|
| pack-priv static void getRefClasses(List<AttributeInfo> attributes, Map<String, String> classnames) | |
| length | back to summary |
|---|---|
| public int length() Returns the length of this | |
| lookup | back to summary |
|---|---|
| pack-priv static AttributeInfo lookup(List<AttributeInfo> attributes, String name) | |
| read | back to summary |
|---|---|
| pack-priv static AttributeInfo read(ConstPool cp, DataInputStream in) throws IOException | |
| remove | back to summary |
|---|---|
| pack-priv static synchronized AttributeInfo remove(List<AttributeInfo> attributes, String name) | |
| renameClass | back to summary |
|---|---|
| pack-priv void renameClass(String oldname, String newname) | |
| renameClass | back to summary |
|---|---|
| pack-priv void renameClass(Map<String, String> classnames) | |
| renameClass | back to summary |
|---|---|
| pack-priv static void renameClass(List<AttributeInfo> attributes, String oldname, String newname) | |
| renameClass | back to summary |
|---|---|
| pack-priv static void renameClass(List<AttributeInfo> attributes, Map<String, String> classnames) | |
| set | back to summary |
|---|---|
| public void set(byte[] newinfo) Sets the This method is not available if the object is an instance
of | |
| write | back to summary |
|---|---|
| pack-priv void write(DataOutputStream out) throws IOException | |
| writeAll | back to summary |
|---|---|
| pack-priv static void writeAll(List<AttributeInfo> attributes, DataOutputStream out) throws IOException | |