public class Attribute extends Object
Modifier and Type | Field and Description |
---|---|
protected static Configuration |
config |
protected ConstantPool |
cp |
Modifier | Constructor and Description |
---|---|
protected |
Attribute(short nameIndex) |
protected |
Attribute(short nameIndex,
int length,
DataInputStream dis) |
Modifier and Type | Method and Description |
---|---|
short |
getAttributeNameIndex() |
byte[] |
getBytes()
Get the bytes of this attribute.
|
protected DataInputStream |
getDataInputStream()
Gets a DatainputStream that reads internal byte[]
|
String |
getName()
Get the name of this Attribute
|
static Attribute |
readAttribute(ConstantPool constantPool,
DataInputStream dis)
Factory method for creating Attributes from given DataInputStream.
|
protected void |
setConstantPool(ConstantPool cp) |
String |
toString() |
protected ConstantPool cp
protected static transient Configuration config
protected Attribute(short nameIndex)
protected Attribute(short nameIndex, int length, DataInputStream dis) throws IOException
IOException
public byte[] getBytes()
public String getName()
public short getAttributeNameIndex()
protected void setConstantPool(ConstantPool cp)
protected DataInputStream getDataInputStream()
public static Attribute readAttribute(ConstantPool constantPool, DataInputStream dis) throws IOException
constantPool
- ConstantPooldis
- DataInputStreamIOException
- on errorCopyright © 2017. All rights reserved.