Class ExceptionMatcher
java.lang.Object
com.ibm.wala.ipa.cfg.exceptionpruning.ExceptionMatcher
Helper class to check if an exception is part of a set of filtered exceptions.
- Author:
- Stephan Gocht
<stephan@gobro.de>
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isFiltered
(Collection<TypeReference> thrownExceptions, Collection<FilteredException> filteredExceptions, ClassHierarchy cha) static Set
<TypeReference> retainedExceptions
(Collection<TypeReference> thrownExceptions, Collection<FilteredException> filteredExceptions, ClassHierarchy cha) Returns all exceptions of thrownExceptions which are not filtered by filteredExceptions
-
Method Details
-
isFiltered
public static boolean isFiltered(Collection<TypeReference> thrownExceptions, Collection<FilteredException> filteredExceptions, ClassHierarchy cha) - Returns:
- true, iff thrownExceptions is part of filteredExceptions
-
retainedExceptions
public static Set<TypeReference> retainedExceptions(Collection<TypeReference> thrownExceptions, Collection<FilteredException> filteredExceptions, ClassHierarchy cha) Returns all exceptions of thrownExceptions which are not filtered by filteredExceptions- Returns:
- all exceptions of thrownExceptions which are not filtered by filteredExceptions
-
getRetainedExceptions
-