public final class RawAttribute extends BaseAttribute
| Constructor and Description |
|---|
RawAttribute(java.lang.String name,
ByteArray data,
ConstantPool pool)
Constructs an instance.
|
RawAttribute(java.lang.String name,
ByteArray data,
int offset,
int length,
ConstantPool pool)
Constructs an instance from a sub-array of a
ByteArray. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getNamepublic RawAttribute(java.lang.String name,
ByteArray data,
ConstantPool pool)
name - non-null; attribute namedata - non-null; attribute datapool - null-ok; constant pool to use for cpi resolutionpublic RawAttribute(java.lang.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 resolutionpublic ByteArray getData()
non-null; the datapublic int byteLength()
6.>= 6; the total length, in bytespublic ConstantPool getPool()
null-ok; the constant poolCopyright © 2020. All Rights Reserved.