public final class ExceptionAttribute extends Attribute
Modifier and Type | Field and Description |
---|---|
private java.util.List |
exceptions |
CODE, CONSTANTVALUE, DEPRECATED, EXCEPTIONS, INNERCLASS, LINENUMBERTABLE, LOCALVARIABLETABLE, SOURCEFILE, SYNTHETIC
Constructor and Description |
---|
ExceptionAttribute(ConstantPool pool) |
ExceptionAttribute(ConstantPool pool,
java.lang.String exception) |
Modifier and Type | Method and Description |
---|---|
void |
addException(ConstantPool pool,
java.lang.String name) |
protected int |
getLength()
This method must be implemented to return the total number of bytes
in the subclass attribute structure.
|
protected void |
writeContent(java.io.DataOutput out)
This method must be implemented to write the data content (not
including the header info - type and length) for the subclassed
attribute type.
|
public ExceptionAttribute(ConstantPool pool)
public ExceptionAttribute(ConstantPool pool, java.lang.String exception)
public void addException(ConstantPool pool, java.lang.String name)
protected int getLength()
Attribute
protected void writeContent(java.io.DataOutput out) throws java.io.IOException
Attribute
writeContent
in class Attribute
out
- Output stream to which data content is written.java.io.IOException
- If any error is encountered while writing data.