Class Exceptions


  • public class Exceptions
    extends AttributeInfo
    Implementation of the "Exceptions" attribute found in MethodInfos.
    Version:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int[] exceptionIndexTable
      Indices into the constant pool of ConstantClassInfos, each representing a class type that this method is declared to throw.
      private MethodInfo mi
      The method this attribute is describing.
    • Constructor Summary

      Constructors 
      Constructor Description
      Exceptions​(MethodInfo mi, int[] exceptionIndexTable)
      Constructor.
    • Field Detail

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