Package edu.umd.cs.findbugs.ba.type
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
Fields Modifier and Type Field Description private ExceptionSetexceptionSetprivate static longserialVersionUID-
Fields 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, VOID
-
Fields inherited from interface edu.umd.cs.findbugs.ba.type.ExtendedTypes
T_AVAIL_TYPE, T_BOTTOM, T_DOUBLE_EXTRA, T_EXCEPTION, T_LONG_EXTRA, T_NULL, T_TOP
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExceptionObjectType(java.lang.String className, ExceptionSet exceptionSet)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static org.apache.bcel.generic.TypefromExceptionSet(ExceptionSet exceptionSet)Initialize object from an exception set.ExceptionSetgetExceptionSet()Return the exception set.bytegetType()inthashCode()java.lang.StringtoString()-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
exceptionSet
private final ExceptionSet exceptionSet
-
-
Constructor Detail
-
ExceptionObjectType
private ExceptionObjectType(java.lang.String className, ExceptionSet exceptionSet)Constructor.- Parameters:
className- the class nameexceptionSet- 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:
getTypein classorg.apache.bcel.generic.Type
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.apache.bcel.generic.ObjectType
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classorg.apache.bcel.generic.ObjectType
-
getExceptionSet
public ExceptionSet getExceptionSet()
Return the exception set.- Returns:
- the ExceptionSet
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.apache.bcel.generic.Type
-
-