Package EDU.purdue.cs.bloat.file
Class Exceptions
- java.lang.Object
-
- EDU.purdue.cs.bloat.file.Attribute
-
- EDU.purdue.cs.bloat.file.Exceptions
-
-
Constructor Summary
Constructors Constructor Description Exceptions(ClassInfo classInfo, java.io.DataInputStream in, int nameIndex, int length)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()int[]exceptionTypes()Get the indices into the constant pool of the types of the exceptions thrown by this method.intlength()Get the length of the attribute.java.lang.StringtoString()Returns a string representation of the attribute.voidwriteData(java.io.DataOutputStream out)Write the attribute to a data stream.
-
-
-
Constructor Detail
-
Exceptions
public Exceptions(ClassInfo classInfo, java.io.DataInputStream in, int nameIndex, int length) throws java.io.IOException
Constructor. Create an Exceptions attribute from a data stream.- Parameters:
in- The data stream of the class file.nameIndex- The index into the constant pool of the name of the attribute.length- The length of the attribute, excluding the header.- Throws:
java.io.IOException- If an error occurs while reading.
-
-
Method Detail
-
writeData
public void writeData(java.io.DataOutputStream out) throws java.io.IOExceptionWrite the attribute to a data stream.
-
exceptionTypes
public int[] exceptionTypes()
Get the indices into the constant pool of the types of the exceptions thrown by this method.- Returns:
- The indices of the types of the exceptions thrown.
-
-