public class Exceptions extends Attribute
Method
Constructor and Description |
---|
Exceptions(ClassFile clazz,
java.io.DataInputStream in,
int nameIndex,
int length)
Constructor.
|
Exceptions(ClassFile clazz,
int nameIndex,
int[] exceptions)
Constructor for create an
Exceptions from scratch. |
Modifier and Type | Method and Description |
---|---|
ClassFile |
getClazz() |
int[] |
getThrowTypes() |
public Exceptions(ClassFile clazz, int nameIndex, int[] exceptions)
Exceptions
from scratch.nameIndex
- The index of the UTF8 string "Exceptions" in the class's
constant poolexceptions
- A non-null
array of indices into the constant
pool for the types of the exceptionspublic Exceptions(ClassFile clazz, java.io.DataInputStream in, int nameIndex, int length) throws java.io.IOException
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.java.io.IOException
- If an error occurs while reading.public ClassFile getClazz()
public int[] getThrowTypes()