| java.lang.Object EDU.purdue.cs.bloat.file.Attribute
All known Subclasses: EDU.purdue.cs.bloat.file.LineNumberTable, EDU.purdue.cs.bloat.file.Exceptions, EDU.purdue.cs.bloat.file.GenericAttribute, EDU.purdue.cs.bloat.file.ConstantValue, EDU.purdue.cs.bloat.file.Code, EDU.purdue.cs.bloat.file.LocalVariableTable,
Constructor Summary | |
public | Attribute(int nameIndex, int length) Constructor. |
Method Summary | |
public Object | clone() | public int | length() Returns the length of the attribute, excluding the header. | public int | nameIndex() Returns the index into the constant pool of the name of the attribute. | public String | toString() Returns a string representation of the attribute. | abstract public void | writeData(DataOutputStream out) Write the attribute to a data stream. |
length | protected int length(Code) | | |
nameIndex | protected int nameIndex(Code) | | |
Attribute | public Attribute(int nameIndex, int length)(Code) | | Constructor.
Parameters: nameIndex - The index into the constant pool of the name of the attribute. Parameters: length - The length of the attribute, excluding the header. |
length | public int length()(Code) | | Returns the length of the attribute, excluding the header.
|
nameIndex | public int nameIndex()(Code) | | Returns the index into the constant pool of the name of the attribute.
|
toString | public String toString()(Code) | | Returns a string representation of the attribute.
|
writeData | abstract public void writeData(DataOutputStream out) throws IOException(Code) | | Write the attribute to a data stream.
Parameters: out - The data stream of the class file. |
|
|