Class ExceptionObjectType
java.lang.Object
org.apache.bcel.generic.Type
org.apache.bcel.generic.ReferenceType
org.apache.bcel.generic.ObjectType
edu.umd.cs.findbugs.ba.type.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.
-
Field Summary
FieldsFields inherited from class org.apache.bcel.generic.Type
BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, INT, LONG, NO_ARGS, NULL, OBJECT, SHORT, signature, STRING, STRINGBUFFER, THROWABLE, type, UNKNOWN, VOIDFields inherited from interface ExtendedTypes
T_AVAIL_TYPE, T_BOTTOM, T_DOUBLE_EXTRA, T_EXCEPTION, T_LONG_EXTRA, T_NULL, T_TOP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExceptionObjectType(String className, ExceptionSet exceptionSet) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic org.apache.bcel.generic.TypefromExceptionSet(ExceptionSet exceptionSet) Initialize object from an exception set.Return the exception set.bytegetType()inthashCode()toString()Methods inherited from class org.apache.bcel.generic.ObjectType
accessibleTo, getClassName, getInstance, referencesClass, referencesClassExact, referencesInterface, referencesInterfaceExact, subclassOfMethods inherited from class org.apache.bcel.generic.ReferenceType
firstCommonSuperclass, getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableToMethods inherited from class org.apache.bcel.generic.Type
getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getTypes, normalizeForStackOrLocal
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
exceptionSet
-
-
Constructor Details
-
ExceptionObjectType
Constructor.- Parameters:
className- the class nameexceptionSet- the set of exceptions
-
-
Method Details
-
fromExceptionSet
public static org.apache.bcel.generic.Type fromExceptionSet(ExceptionSet exceptionSet) throws 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:
ClassNotFoundException
-
getType
public byte getType()- Overrides:
getTypein classorg.apache.bcel.generic.Type
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.bcel.generic.ObjectType
-
equals
- Overrides:
equalsin classorg.apache.bcel.generic.ObjectType
-
getExceptionSet
-
toString
- Overrides:
toStringin classorg.apache.bcel.generic.Type
-