edu.umd.cs.findbugs.ba
Class ClassContext.AnalysisResult<Analysis>

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.ClassContext.AnalysisResult<Analysis>
Enclosing class:
ClassContext

private static class ClassContext.AnalysisResult<Analysis>
extends java.lang.Object

An AnalysisResult stores the result of requesting an analysis from an AnalysisFactory. It can represent a successful outcome (where the Analysis object can be returned), or an unsuccessful outcome (where an exception was thrown trying to create the analysis). For unsuccessful outcomes, we rethrow the original exception rather than making another attempt to create the analysis (since if it fails once, it will never succeed).


Field Summary
private  Analysis analysis
           
private  AnalysisException analysisException
           
private  boolean analysisSetExplicitly
           
private  CFGBuilderException cfgBuilderException
           
private  DataflowAnalysisException dataflowAnalysisException
           
 
Constructor Summary
private ClassContext.AnalysisResult()
           
 
Method Summary
 Analysis getAnalysis()
           
 void setAnalysis(Analysis analysis)
          Record a successful outcome, where the analysis was created.
 void setAnalysisException(AnalysisException analysisException)
          Record that an AnalysisException occurred while attempting to create the Analysis.
 void setCFGBuilderException(CFGBuilderException cfgBuilderException)
          Record that a CFGBuilderException occurred while attempting to create the Analysis.
 void setDataflowAnalysisException(DataflowAnalysisException dataflowException)
          Record that a DataflowAnalysisException occurred while attempting to create the Analysis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

analysisSetExplicitly

private boolean analysisSetExplicitly

analysis

private Analysis analysis

analysisException

private AnalysisException analysisException

cfgBuilderException

private CFGBuilderException cfgBuilderException

dataflowAnalysisException

private DataflowAnalysisException dataflowAnalysisException
Constructor Detail

ClassContext.AnalysisResult

private ClassContext.AnalysisResult()
Method Detail

getAnalysis

public Analysis getAnalysis()
                     throws CFGBuilderException,
                            DataflowAnalysisException
Throws:
CFGBuilderException
DataflowAnalysisException

setAnalysis

public void setAnalysis(Analysis analysis)
Record a successful outcome, where the analysis was created.

Parameters:
analysis - the Analysis

setAnalysisException

public void setAnalysisException(AnalysisException analysisException)
Record that an AnalysisException occurred while attempting to create the Analysis.

Parameters:
analysisException - the AnalysisException

setCFGBuilderException

public void setCFGBuilderException(CFGBuilderException cfgBuilderException)
Record that a CFGBuilderException occurred while attempting to create the Analysis.

Parameters:
cfgBuilderException - the CFGBuilderException

setDataflowAnalysisException

public void setDataflowAnalysisException(DataflowAnalysisException dataflowException)
Record that a DataflowAnalysisException occurred while attempting to create the Analysis.

Parameters:
dataflowException - the DataflowAnalysisException