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 in MethodInfos.
Version:
1.0
  • Field Details

    • mi

      private MethodInfo mi
      The method this attribute is describing.
    • exceptionIndexTable

      private int[] exceptionIndexTable
      Indices into the constant pool of ConstantClassInfos, each representing a class type that this method is declared to throw.
  • Constructor Details

    • Exceptions

      public Exceptions(MethodInfo mi, int[] exceptionIndexTable)
      Constructor.
      Parameters:
      mi - The method this attribute is describing.
      exceptionIndexTable - The exception index table.
  • Method Details

    • getException

      public 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.