Record Class FilteredException
java.lang.Object
java.lang.Record
com.ibm.wala.ipa.cfg.exceptionpruning.FilteredException
FilteredException represents either a single exception or an exception and all its subclasses.
- Author:
- Stephan Gocht
<stephan@gobro.de>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilteredException(TypeReference exception) FilteredException(TypeReference exception, boolean isSubclassFiltered) Creates an instance of aFilteredExceptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.Deprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisSubclassFilteredrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
FILTER_SUBCLASSES
public static final boolean FILTER_SUBCLASSES- See Also:
-
-
Constructor Details
-
FilteredException
-
FilteredException
Creates an instance of aFilteredExceptionrecord class.- Parameters:
exception- the value for theexceptionrecord componentisSubclassFiltered- the value for theisSubclassFilteredrecord component
-
-
Method Details
-
getException
Deprecated, for removal: This API element is subject to removal in a future version.Useexception()instead -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-
isSubclassFiltered
public boolean isSubclassFiltered()Returns the value of theisSubclassFilteredrecord component.- Returns:
- the value of the
isSubclassFilteredrecord component
-
exception()instead