|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.logicalcobwebs.asm.Attribute
public class Attribute
A non standard class, field, method or code attribute.
| Field Summary | |
|---|---|
byte[] |
b
The byte array that contains the value of this attribute. |
int |
len
Length of this attributes, in bytes. |
Attribute |
next
The next attribute in this attribute list. |
int |
off
Index of the first byte of this attribute in b. |
java.lang.String |
type
The type of this attribute. |
| Constructor Summary | |
|---|---|
Attribute(java.lang.String type)
Constructs a new empty attribute. |
|
Attribute(java.lang.String type,
byte[] b,
int off,
int len)
Constructs a new Attribute. |
|
| Method Summary | |
|---|---|
(package private) int |
getCount()
Returns the length of the attribute list that begins with this attribute. |
(package private) int |
getSize(ClassWriter cw)
Returns the size of all the attributes in this attribute list. |
(package private) void |
put(ClassWriter cw,
ByteVector out)
Writes all the attributes of this attribute list in the given byte vector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String type
public byte[] b
public int off
b.
public int len
public Attribute next
| Constructor Detail |
|---|
public Attribute(java.lang.String type,
byte[] b,
int off,
int len)
Attribute.
type - the type of the attribute.b - byte array that contains the value of the attribute.off - index of the first byte of the attribute in b.len - length of the attributes, in bytes.public Attribute(java.lang.String type)
type - the type of the attribute.| Method Detail |
|---|
final int getCount()
final int getSize(ClassWriter cw)
cw - the class writer to be used to convert the attributes into byte
arrays, with the writeAttribute
method.
final void put(ClassWriter cw,
ByteVector out)
cw - the class writer to be used to convert the attributes into byte
arrays, with the writeAttribute
method.out - where the attributes must be written.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||