public class ExceptionSet extends Object implements Serializable
TypeAnalysis,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
class |
ExceptionSet.ThrownExceptionIterator
Object to iterate over the exception types in the set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.bcel.generic.ObjectType type,
boolean explicit)
Add an exception.
|
void |
addAll(ExceptionSet other)
Add all exceptions in the given set.
|
void |
addExplicit(org.apache.bcel.generic.ObjectType type)
Add an explicit exception.
|
void |
addImplicit(org.apache.bcel.generic.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.
|
boolean |
equals(Object o) |
org.apache.bcel.generic.Type |
getCommonSupertype()
Get the least (lowest in the lattice) common supertype of the exceptions
in the set.
|
int |
hashCode() |
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() |
String |
toString() |
public ExceptionSet duplicate()
public org.apache.bcel.generic.Type getCommonSupertype()
throws ClassNotFoundException
ClassNotFoundExceptionpublic ExceptionSet.ThrownExceptionIterator iterator()
public boolean isEmpty()
public boolean isSingleton(String exceptionName)
exceptionName - (in dotted format)public void addExplicit(org.apache.bcel.generic.ObjectType type)
type - type of the exceptionpublic void addImplicit(org.apache.bcel.generic.ObjectType type)
type - type of the exceptionpublic void add(org.apache.bcel.generic.ObjectType type,
boolean explicit)
type - the exception typeexplicit - true if the exception is explicitly declared or thrown, false
if implicitpublic void addAll(ExceptionSet other)
other - the setpublic void clear()
public void sawUniversal()
public boolean sawUniversalHandler()
public boolean containsCheckedExceptions()
throws ClassNotFoundException
ClassNotFoundExceptionpublic boolean containsExplicitExceptions()
public int size()
Copyright © 2003–2015. All rights reserved.