Class Exceptions
- java.lang.Object
-
- org.fife.rsta.ac.java.classreader.attributes.AttributeInfo
-
- org.fife.rsta.ac.java.classreader.attributes.Exceptions
-
public class Exceptions extends AttributeInfo
Implementation of the "Exceptions" attribute found inMethodInfos.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private int[]exceptionIndexTableIndices into the constant pool ofConstantClassInfos, each representing a class type that this method is declared to throw.private MethodInfomiThe method this attribute is describing.
-
Constructor Summary
Constructors Constructor Description Exceptions(MethodInfo mi, int[] exceptionIndexTable)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetException(int index)Returns the fully-qualified name of the specified exception.intgetExceptionCount()Returns the number of exceptions this attribute knows about.MethodInfogetMethodInfo()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 Detail
-
mi
private MethodInfo mi
The method this attribute is describing.
-
exceptionIndexTable
private int[] exceptionIndexTable
Indices into the constant pool ofConstantClassInfos, each representing a class type that this method is declared to throw.
-
-
Constructor Detail
-
Exceptions
public Exceptions(MethodInfo mi, int[] exceptionIndexTable)
Constructor.- Parameters:
mi- The method this attribute is describing.exceptionIndexTable- The exception index table.
-
-
Method Detail
-
getException
public java.lang.String getException(int index)
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
public MethodInfo getMethodInfo()
Returns information about the method this attribute is describing.- Returns:
- The method information.
-
-