Class ExceptionObjectType

  • All Implemented Interfaces:
    ExtendedTypes

    public class ExceptionObjectType
    extends org.apache.bcel.generic.ObjectType
    implements ExtendedTypes
    Special ReferenceType representing the type of a caught exception. Keeps track of the entire set of exceptions that can be caught, and whether they are explicit or implicit.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExceptionObjectType​(java.lang.String className, ExceptionSet exceptionSet)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      static org.apache.bcel.generic.Type fromExceptionSet​(ExceptionSet exceptionSet)
      Initialize object from an exception set.
      ExceptionSet getExceptionSet()
      Return the exception set.
      byte getType()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class org.apache.bcel.generic.ObjectType

        accessibleTo, getClassName, getInstance, referencesClass, referencesClassExact, referencesInterface, referencesInterfaceExact, subclassOf
      • Methods inherited from class org.apache.bcel.generic.ReferenceType

        firstCommonSuperclass, getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableTo
      • Methods inherited from class org.apache.bcel.generic.Type

        getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getTypes, normalizeForStackOrLocal
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExceptionObjectType

        private ExceptionObjectType​(java.lang.String className,
                                    ExceptionSet exceptionSet)
        Constructor.
        Parameters:
        className - the class name
        exceptionSet - the set of exceptions
    • Method Detail

      • fromExceptionSet

        public static org.apache.bcel.generic.Type fromExceptionSet​(ExceptionSet exceptionSet)
                                                             throws java.lang.ClassNotFoundException
        Initialize object from an exception set.
        Parameters:
        exceptionSet - the exception set
        Returns:
        a Type that is a supertype of all of the exceptions in the exception set
        Throws:
        java.lang.ClassNotFoundException
      • getType

        public byte getType()
        Overrides:
        getType in class org.apache.bcel.generic.Type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.apache.bcel.generic.ObjectType
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class org.apache.bcel.generic.ObjectType
      • getExceptionSet

        public ExceptionSet getExceptionSet()
        Return the exception set.
        Returns:
        the ExceptionSet
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.apache.bcel.generic.Type