public final class AnalysisResult extends Object implements AutoCloseable
To properly close the resource acquired by the extensions during the analysis, one has to close() this
 analysis results object.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | AnalysisResult.ExtensionInstance<I> | 
| static class  | AnalysisResult.Extensions | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| static AnalysisResult | fakeFailure(Exception failure)Similar to  fakeSuccess(), this returns a failed analysis result without the need to run any analysis. | 
| static AnalysisResult | fakeSuccess()A factory method for users that need to report success without actually running any analysis. | 
| AnalysisResult.Extensions | getExtensions() | 
| Exception | getFailure() | 
| boolean | isSuccess() | 
| void | throwIfFailed() | 
public static AnalysisResult fakeSuccess()
public static AnalysisResult fakeFailure(Exception failure)
fakeSuccess(), this returns a failed analysis result without the need to run any analysis.failure - the failure to reportpublic boolean isSuccess()
@Nullable public Exception getFailure()
public AnalysisResult.Extensions getExtensions()
public void close()
           throws Exception
close in interface AutoCloseableExceptionCopyright © 2014-2021 Lukas Krejci. All Rights Reserved.