| java.lang.Object EDU.purdue.cs.bloat.file.Attribute EDU.purdue.cs.bloat.file.Exceptions
Method Summary | |
public Object | clone() | public int[] | exceptionTypes() Get the indices into the constant pool of the types of the exceptions
thrown by this method. | public int | length() Get the length of the attribute. | public String | toString() Returns a string representation of the attribute. | public void | writeData(DataOutputStream out) Write the attribute to a data stream. |
Exceptions | Exceptions(ClassInfo info, int nameIndex, int[] exceptions)(Code) | | Constructor for create an Exceptions from scratch.
Parameters: nameIndex - The index of the UTF8 string "Exceptions" in the class'sconstant pool Parameters: exceptions - A non-null array of indices into the constantpool for the types of the exceptions |
Exceptions | public Exceptions(ClassInfo classInfo, DataInputStream in, int nameIndex, int length) throws IOException(Code) | | Constructor. Create an Exceptions attribute from a data stream.
Parameters: in - The data stream of the class file. Parameters: nameIndex - The index into the constant pool of the name of the attribute. Parameters: length - The length of the attribute, excluding the header. exception: IOException - If an error occurs while reading. |
exceptionTypes | public int[] exceptionTypes()(Code) | | Get the indices into the constant pool of the types of the exceptions
thrown by this method.
The indices of the types of the exceptions thrown. |
length | public int length()(Code) | | Get the length of the attribute.
|
toString | public String toString()(Code) | | Returns a string representation of the attribute.
|
writeData | public void writeData(DataOutputStream out) throws IOException(Code) | | Write the attribute to a data stream.
Parameters: out - The data stream of the class file. exception: IOException - If an error occurs while writing. |
|
|