soot.toolkits.exceptions
Class ThrowableSet.Pair
java.lang.Object
soot.toolkits.exceptions.ThrowableSet.Pair
- Enclosing class:
- ThrowableSet
public static class ThrowableSet.Pair
- extends Object
The return type for ThrowableSet.whichCatchableAs(RefType)
,
consisting of a pair of ThrowableSets.
ThrowableSet.Pair
protected ThrowableSet.Pair(ThrowableSet caught,
ThrowableSet uncaught)
- Constructs a
ThrowableSet.Pair
.
- Parameters:
caught
- The set of exceptions to be returned when
getCaught()
is called on the constructed
ThrowableSet.Pair
.uncaught
- The set of exceptions to be returned when
getUncaught()
is called on the
constructed ThrowableSet.Pair
.
getCaught
public ThrowableSet getCaught()
- Returns:
- the set of caught exceptions.
getUncaught
public ThrowableSet getUncaught()
- Returns:
- the set of uncaught exceptions.
equals
public boolean equals(Object o)
- Indicates whether two
Object
s are
ThrowableSet.Pair
s representing the same set of
caught and uncaught exception types.
- Overrides:
equals
in class Object
- Parameters:
o
- the Object
to compare to this
ThrowableSet.Pair
.
- Returns:
true
if o
is a
ThrowableSet.Pair
representing the same set of
caught and uncaught types as this
ThrowableSet.Pair
.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object