edu.umd.cs.findbugs.ba.type
public class ExceptionSet extends Object implements Serializable
See Also: TypeAnalysis
Nested Class Summary | |
---|---|
class | ExceptionSet.ThrownExceptionIterator
Object to iterate over the exception types in the set. |
Method Summary | |
---|---|
void | add(ObjectType type, boolean explicit)
Add an exception.
|
void | addAll(ExceptionSet other)
Add all exceptions in the given set.
|
void | addExplicit(ObjectType type)
Add an explicit exception.
|
void | addImplicit(ObjectType type)
Add an implicit exception.
|
void | clear()
Remove all exceptions from the set. |
boolean | containsCheckedExceptions()
Return whether or not the set contains any checked exceptions. |
boolean | containsExplicitExceptions()
Return whether or not the set contains any explicit exceptions. |
ExceptionSet | duplicate()
Return an exact copy of this object. |
Type | getCommonSupertype()
Get the least (lowest in the lattice) common supertype
of the exceptions in the set. |
boolean | isEmpty()
Return whether or not the set is empty. |
boolean | isSingleton(String exceptionName)
Checks to see if the exception set is a singleton set
containing just the named exception |
ExceptionSet.ThrownExceptionIterator | iterator()
Return an iterator over thrown exceptions. |
void | sawUniversal()
Return whether or not a universal exception handler
was reached by the set. |
boolean | sawUniversalHandler()
Mark the set as having reached a universal exception handler. |
int | size() |
Parameters: type the exception type explicit true if the exception is explicitly declared or thrown, false if implicit
Parameters: other the set
Parameters: type type of the exception
Parameters: type type of the exception
Parameters: exceptionName (in dotted format)
Returns: true if it is