public class Attribute
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ConstantPool |
cp |
Modifier | Constructor and Description |
---|---|
protected |
Attribute(short nameIndex) |
protected |
Attribute(short nameIndex,
int length,
java.io.DataInputStream dis) |
Modifier and Type | Method and Description |
---|---|
short |
getAttributeNameIndex() |
byte[] |
getBytes()
Get the bytes of this attribute.
|
protected java.io.DataInputStream |
getDataInputStream()
Gets a DatainputStream that reads internal byte[]
|
java.lang.String |
getName()
Get the name of this Attribute
|
static Attribute |
readAttribute(ConstantPool constantPool,
java.io.DataInputStream dis)
Factory method for creating Attributes from given DataInputStream.
|
void |
setConstantPool(ConstantPool cp) |
java.lang.String |
toString() |
protected ConstantPool cp
protected Attribute(short nameIndex)
protected Attribute(short nameIndex, int length, java.io.DataInputStream dis) throws java.io.IOException
java.io.IOException
public short getAttributeNameIndex()
public byte[] getBytes()
protected java.io.DataInputStream getDataInputStream()
public java.lang.String getName()
public static Attribute readAttribute(ConstantPool constantPool, java.io.DataInputStream dis) throws java.io.IOException
constantPool
- dis
- java.io.IOException
public void setConstantPool(ConstantPool cp)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001. Documenation generated February 9 2016.