Class Exceptions
java.lang.Object
org.fife.rsta.ac.java.classreader.attributes.AttributeInfo
org.fife.rsta.ac.java.classreader.attributes.Exceptions
Implementation of the "
Exceptions" attribute found in
MethodInfos.- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]Indices into the constant pool ofConstantClassInfos, each representing a class type that this method is declared to throw.private MethodInfoThe method this attribute is describing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetException(int index) Returns the fully-qualified name of the specified exception.intReturns the number of exceptions this attribute knows about.Returns information about the method this attribute is describing.Methods inherited from class org.fife.rsta.ac.java.classreader.attributes.AttributeInfo
getClassFile, getName, readUnsupportedAttribute
-
Field Details
-
mi
The method this attribute is describing. -
exceptionIndexTable
private int[] exceptionIndexTableIndices into the constant pool ofConstantClassInfos, each representing a class type that this method is declared to throw.
-
-
Constructor Details
-
Exceptions
Constructor.- Parameters:
mi- The method this attribute is describing.exceptionIndexTable- The exception index table.
-
-
Method Details
-
getException
Returns the fully-qualified name of the specified exception.- Parameters:
index- The index of the exception whose name to retrieve.- Returns:
- The name of the exception.
-
getExceptionCount
public int getExceptionCount()Returns the number of exceptions this attribute knows about.- Returns:
- The number of exceptions.
-
getMethodInfo
Returns information about the method this attribute is describing.- Returns:
- The method information.
-