soot.toolkits.exceptions
Class ThrowableSet.Pair

java.lang.Object
  extended by 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.


Constructor Summary
protected ThrowableSet.Pair(ThrowableSet caught, ThrowableSet uncaught)
          Constructs a ThrowableSet.Pair.
 
Method Summary
 boolean equals(Object o)
          Indicates whether two Objects are ThrowableSet.Pairs representing the same set of caught and uncaught exception types.
 ThrowableSet getCaught()
           
 ThrowableSet getUncaught()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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 Objects are ThrowableSet.Pairs 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