FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba.type
Class ThrownException

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.type.ThrownException

public class ThrownException
extends java.lang.Object

An 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:

Author:
David Hovemeyer
See Also:
ExceptionSet, TypeAnalysis

Constructor Summary
ThrownException(org.apache.bcel.generic.ObjectType type, boolean explicit)
          Constructor.
 
Method Summary
 ThrownException duplicate()
          Return an identical copy of this object.
 boolean equals(java.lang.Object o)
           
 org.apache.bcel.generic.ObjectType getType()
          Get the exception type.
 int hashCode()
           
 boolean isExplicit()
          Return whether or not the exception is explicit.
 void setExplicit(boolean explicit)
          Set whether or not the exception is explicit.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrownException

public ThrownException(org.apache.bcel.generic.ObjectType type,
                       boolean explicit)
Constructor.

Parameters:
type - type of exception
explicit - true if explicit, false if implicit
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:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.