Package javassist.bytecode
Class ExceptionsAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.ExceptionsAttribute
Exceptions_attribute.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy.intgetException(int nth) Returns the value ofexception_index_table[nth].int[]Returnsexception_index_table[].String[]Returns the names of exceptions that the method may throw.voidsetExceptionIndexes(int[] elist) Setsexception_index_table[].voidsetExceptions(String[] elist) Sets the names of exceptions that the method may throw.intReturnsnumber_of_exceptions.Methods inherited from class javassist.bytecode.AttributeInfo
get, getConstPool, getName, length, set
-
Field Details
-
tag
The name of this attribute"Exceptions".- See Also:
-
-
Constructor Details
-
ExceptionsAttribute
Constructs a new exceptions attribute.- Parameters:
cp- constant pool table.
-
-
Method Details
-
copy
Makes a copy. Class names are replaced according to the givenMapobject.- Overrides:
copyin classAttributeInfo- Parameters:
newCp- the constant pool table used by the new copy.classnames- pairs of replaced and substituted class names. It can benull.
-
getExceptionIndexes
public int[] getExceptionIndexes()Returnsexception_index_table[]. -
getExceptions
Returns the names of exceptions that the method may throw. -
setExceptionIndexes
public void setExceptionIndexes(int[] elist) Setsexception_index_table[]. -
setExceptions
Sets the names of exceptions that the method may throw. -
tableLength
public int tableLength()Returnsnumber_of_exceptions. -
getException
public int getException(int nth) Returns the value ofexception_index_table[nth].
-