|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.bytecode.Attribute gnu.bytecode.ExceptionsAttr
public class ExceptionsAttr
Represents the contents of a standard "Exceptions" attribute.
Constructor Summary | |
---|---|
ExceptionsAttr(Method meth)
Add a new ExceptionsAttr to a Method. |
Method Summary | |
---|---|
void |
assignConstants(ClassType cl)
Add any needed constant pool entries for this Attribute. |
ClassType[] |
getExceptions()
The types of the exceptions in this attr. |
int |
getLength()
The size of this Attribute (in bytes) is 2 (for number_of_exception) plus 2 * number_of_exceptions. |
void |
print(ClassTypeWriter dst)
|
void |
setExceptions(ClassType[] excep_types)
Set the Exceptions attribute to refer to the given exception types. |
void |
setExceptions(short[] indices,
ClassType cl)
Set the Exceptions attribute to refer to classes whose indices in the constant pool of `cl' are given by `indices'. |
void |
write(java.io.DataOutputStream dstr)
Write out the contents of the Attribute. |
Methods inherited from class gnu.bytecode.Attribute |
---|
addToFrontOf, assignConstants, count, get, getContainer, getLengthAll, getName, getNameIndex, getNext, isSkipped, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, writeAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionsAttr(Method meth)
Method Detail |
---|
public void setExceptions(short[] indices, ClassType cl)
public void setExceptions(ClassType[] excep_types)
excep_types
- the types of the exceptions.public void assignConstants(ClassType cl)
Attribute
assignConstants
in class Attribute
public final int getLength()
getLength
in class Attribute
public final ClassType[] getExceptions()
public void write(java.io.DataOutputStream dstr) throws java.io.IOException
Attribute
write
in class Attribute
java.io.IOException
public void print(ClassTypeWriter dst)
print
in class Attribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |