edu.umd.cs.findbugs.ba
Class TypeAnalysis.CachedExceptionSet

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.TypeAnalysis.CachedExceptionSet
Enclosing class:
TypeAnalysis

private class TypeAnalysis.CachedExceptionSet
extends java.lang.Object

Repository of information about thrown exceptions computed for a basic block and its outgoing exception edges. It contains a result TypeFrame, which is used to detect when the exception information needs to be recomputed for the block.


Field Summary
private  java.util.Map<Edge,ExceptionSet> edgeExceptionMap
           
private  ExceptionSet exceptionSet
           
private  TypeFrame result
           
 
Constructor Summary
TypeAnalysis.CachedExceptionSet(TypeFrame result, ExceptionSet exceptionSet)
           
 
Method Summary
 ExceptionSet getEdgeExceptionSet(Edge edge)
           
 ExceptionSet getExceptionSet()
           
 boolean isUpToDate(TypeFrame result)
           
 void setEdgeExceptionSet(Edge edge, ExceptionSet exceptionSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

private TypeFrame result

exceptionSet

private ExceptionSet exceptionSet

edgeExceptionMap

private java.util.Map<Edge,ExceptionSet> edgeExceptionMap
Constructor Detail

TypeAnalysis.CachedExceptionSet

public TypeAnalysis.CachedExceptionSet(TypeFrame result,
                                       ExceptionSet exceptionSet)
Method Detail

isUpToDate

public boolean isUpToDate(TypeFrame result)

getExceptionSet

public ExceptionSet getExceptionSet()

setEdgeExceptionSet

public void setEdgeExceptionSet(Edge edge,
                                ExceptionSet exceptionSet)

getEdgeExceptionSet

public ExceptionSet getEdgeExceptionSet(Edge edge)