|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.ClassContext.AnalysisResult<Analysis>
private static class ClassContext.AnalysisResult<Analysis>
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 |
---|
private boolean analysisSetExplicitly
private Analysis analysis
private AnalysisException analysisException
private CFGBuilderException cfgBuilderException
private DataflowAnalysisException dataflowAnalysisException
Constructor Detail |
---|
private ClassContext.AnalysisResult()
Method Detail |
---|
public Analysis getAnalysis() throws CFGBuilderException, DataflowAnalysisException
CFGBuilderException
DataflowAnalysisException
public void setAnalysis(Analysis analysis)
analysis
- the Analysispublic void setAnalysisException(AnalysisException analysisException)
analysisException
- the AnalysisExceptionpublic void setCFGBuilderException(CFGBuilderException cfgBuilderException)
cfgBuilderException
- the CFGBuilderExceptionpublic void setDataflowAnalysisException(DataflowAnalysisException dataflowException)
dataflowException
- the DataflowAnalysisException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |