revapi/src/main/java/org/revapi/Revapi.java
/**
     * Performs the analysis configured by the given analysis context.
     * <p>
     * Make sure to call the {@link AnalysisResult#close()} method (or perform the analysis in try-with-resources
     * block).
     *
     * @param analysisContext describes the analysis to be performed
     * @return a result object that has to be closed for the analysis to conclude
     */
Performs the analysis configured by the given analysis context.

Make sure to call the  AnalysisResult#close() method (or perform the analysis in try-with-resources
block).

@param analysisContext describes the analysis to be performed
@return a result object that has to be closed for the analysis to conclude
Performs the analysis configured by the given analysis context . Make sure to call the AnalysisResult#close () method ( or perform the analysis in try - with - resources block ) . @param analysisContext describes the analysis to be performed @return a result object that has to be closed for the analysis to conclude
@SuppressWarnings("unchecked")
    public AnalysisResult analyze(@Nonnull AnalysisContext analysisContext) {
        TIMING_LOG.debug("Analysis starts");
        AnalysisResult.Extensions extensions = prepareAnalysis(analysisContext);
        StreamSupport.stream(extensions.spliterator(), false)
                .map(e -> (Map.Entry<Configurable, AnalysisContext>) e)
                .forEach(e -> e.getKey().initialize(e.getValue()));
        TIMING_LOG.debug("Initialization complete.");
        matchingTransformsCache.clear();
        Exception error = null;
        try {
            for (ApiAnalyzer a : extensions.getAnalyzers().keySet()) {
                analyzeWith(a, analysisContext.getOldApi(), analysisContext.getNewApi(), extensions);
            }
        } catch (Exception t) {
            error = t;
        }
        return new AnalysisResult(error, extensions);
    }
@ SuppressWarnings ( "unchecked" ) public AnalysisResult analyze ( @ Nonnull AnalysisContext analysisContext ) { TIMING_LOG . debug ( "Analysis starts" ) ; AnalysisResult . Extensions extensions = prepareAnalysis ( analysisContext ) ; StreamSupport . stream ( extensions . spliterator ( ) , false ) . map ( e -> ( Map . Entry < Configurable , AnalysisContext > ) e ) . forEach ( e -> e . getKey ( ) . initialize ( e . getValue ( ) ) ) ; TIMING_LOG . debug ( "Initialization complete." ) ; matchingTransformsCache . clear ( ) ; Exception error = null ; try { for ( ApiAnalyzer a : extensions . getAnalyzers ( ) . keySet ( ) ) { analyzeWith ( a , analysisContext . getOldApi ( ) , analysisContext . getNewApi ( ) , extensions ) ; } } catch ( Exception t ) { error = t ; } return new AnalysisResult ( error , extensions ) ; }
Performs the analysis configured by the given analysis context.
Performs the analysis configured by the given analysis context .