Search in sources :

Example 1 with ProbingEnvironment

use of org.revapi.java.compilation.ProbingEnvironment in project revapi by revapi.

the class JavaApiAnalyzer method getDifferenceAnalyzer.

@Nonnull
@Override
public DifferenceAnalyzer getDifferenceAnalyzer(@Nonnull ArchiveAnalyzer oldArchive, @Nonnull ArchiveAnalyzer newArchive) {
    JavaArchiveAnalyzer oldA = (JavaArchiveAnalyzer) oldArchive;
    JavaArchiveAnalyzer newA = (JavaArchiveAnalyzer) newArchive;
    ProbingEnvironment oldEnvironment = oldA.getProbingEnvironment();
    ProbingEnvironment newEnvironment = newA.getProbingEnvironment();
    CompilationValve oldValve = oldA.getCompilationValve();
    CompilationValve newValve = newA.getCompilationValve();
    return new JavaElementDifferenceAnalyzer(analysisContext, oldEnvironment, oldValve, newEnvironment, newValve, checks, configuration);
}
Also used : CompilationValve(org.revapi.java.compilation.CompilationValve) ProbingEnvironment(org.revapi.java.compilation.ProbingEnvironment) Nonnull(javax.annotation.Nonnull)

Aggregations

Nonnull (javax.annotation.Nonnull)1 CompilationValve (org.revapi.java.compilation.CompilationValve)1 ProbingEnvironment (org.revapi.java.compilation.ProbingEnvironment)1