|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.cf.attrib.BaseAttribute
com.android.dx.cf.attrib.RawAttribute
public final class RawAttribute
Raw attribute, for holding onto attributes that are unrecognized.
| Constructor Summary | |
|---|---|
RawAttribute(String name,
ByteArray data,
ConstantPool pool)
Constructs an instance. |
|
RawAttribute(String name,
ByteArray data,
int offset,
int length,
ConstantPool pool)
Constructs an instance from a sub-array of a ByteArray. |
|
| Method Summary | |
|---|---|
int |
byteLength()
Get the total length of the attribute in bytes, including the header. |
ByteArray |
getData()
Get the raw data of the attribute. |
ConstantPool |
getPool()
Gets the constant pool to use for cpi resolution, if any. |
| Methods inherited from class com.android.dx.cf.attrib.BaseAttribute |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawAttribute(String name,
ByteArray data,
ConstantPool pool)
name - non-null; attribute namedata - non-null; attribute datapool - null-ok; constant pool to use for cpi resolution
public RawAttribute(String name,
ByteArray data,
int offset,
int length,
ConstantPool pool)
ByteArray.
name - non-null; attribute namedata - non-null; array containing the attribute dataoffset - offset in data to the attribute datalength - length of the attribute data, in bytespool - null-ok; constant pool to use for cpi resolution| Method Detail |
|---|
public ByteArray getData()
non-null; the datapublic int byteLength()
6.
>= 6; the total length, in bytespublic ConstantPool getPool()
null-ok; the constant pool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||