public final class Revapi extends Object
analyze(AnalysisContext)
method.Modifier and Type | Class and Description |
---|---|
static class |
Revapi.Builder
Deprecated.
favor the
PipelineConfiguration.Builder |
Constructor and Description |
---|
Revapi(PipelineConfiguration pipelineConfiguration)
Use the
builder() instead. |
Modifier and Type | Method and Description |
---|---|
AnalysisResult |
analyze(AnalysisContext analysisContext)
Performs the analysis configured by the given analysis context.
|
static Revapi.Builder |
builder() |
PipelineConfiguration |
getPipelineConfiguration() |
AnalysisResult.Extensions |
prepareAnalysis(AnalysisContext analysisContext)
This instantiates the individual extensions and assigns the configurations to each one of them.
|
ValidationResult |
validateConfiguration(AnalysisContext analysisContext)
Validates the configuration of the analysis context.
|
public Revapi(PipelineConfiguration pipelineConfiguration)
builder()
instead.pipelineConfiguration
- the configuration of the analysis pipelineIllegalArgumentException
- if any of the parameters is null@Nonnull public static Revapi.Builder builder()
public ValidationResult validateConfiguration(@Nonnull AnalysisContext analysisContext)
analysisContext
- the analysis contextpublic PipelineConfiguration getPipelineConfiguration()
public AnalysisResult.Extensions prepareAnalysis(@Nonnull AnalysisContext analysisContext)
Note that the extensions are instantiated but NOT initialized after this call.
analysisContext
- the analysis context containing the "global" configuration of all extensionspublic AnalysisResult analyze(@Nonnull AnalysisContext analysisContext)
Make sure to call the AnalysisResult.close()
method (or perform the analysis in try-with-resources
block).
analysisContext
- describes the analysis to be performedCopyright © 2014-2020 Lukas Krejci. All Rights Reserved.