Package edu.umd.cs.findbugs.ba.type
Class ThrownException
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.type.ThrownException
-
public class ThrownException extends java.lang.ObjectAn exception thrown from an instruction. These can be implicit (i.e., runtime exceptions and errors), or explicit (athrow, or declared exception from called method). This information is used in TypeAnalysis in order to determine:- what exceptions can be thrown along exception edges, and
- which exceptions are explicit (declared or explicitly thrown) and which are implicit (result of failed runtime checks)
- Author:
- David Hovemeyer
- See Also:
ExceptionSet,TypeAnalysis
-
-
Constructor Summary
Constructors Constructor Description ThrownException(org.apache.bcel.generic.ObjectType type, boolean explicit)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrownExceptionduplicate()Return an identical copy of this object.booleanequals(java.lang.Object o)org.apache.bcel.generic.ObjectTypegetType()Get the exception type.inthashCode()booleanisExplicit()Return whether or not the exception is explicit.voidsetExplicit(boolean explicit)Set whether or not the exception is explicit.
-
-
-
Method Detail
-
duplicate
public ThrownException duplicate()
Return an identical copy of this object.
-
getType
public org.apache.bcel.generic.ObjectType getType()
Get the exception type.
-
isExplicit
public boolean isExplicit()
Return whether or not the exception is explicit.
-
setExplicit
public void setExplicit(boolean explicit)
Set whether or not the exception is explicit.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-