Search in sources :

Example 1 with ClassLoaderTypeSolver

use of com.github.javaparser.symbolsolver.resolution.typesolvers.ClassLoaderTypeSolver in project flow by vaadin.

the class OpenAPIObjectGenerator method createParserConfiguration.

private ParserConfiguration createParserConfiguration() {
    typeSolver = new CombinedTypeSolver(new ReflectionTypeSolver(false));
    if (typeResolverClassLoader != null) {
        typeSolver.add(new ClassLoaderTypeSolver(typeResolverClassLoader));
    }
    JavaSymbolSolver symbolResolver = new JavaSymbolSolver(typeSolver);
    return new ParserConfiguration().setSymbolResolver(symbolResolver);
}
Also used : JavaSymbolSolver(com.github.javaparser.symbolsolver.JavaSymbolSolver) ReflectionTypeSolver(com.github.javaparser.symbolsolver.resolution.typesolvers.ReflectionTypeSolver) CombinedTypeSolver(com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSolver) ClassLoaderTypeSolver(com.github.javaparser.symbolsolver.resolution.typesolvers.ClassLoaderTypeSolver) ParserConfiguration(com.github.javaparser.ParserConfiguration)

Aggregations

ParserConfiguration (com.github.javaparser.ParserConfiguration)1 JavaSymbolSolver (com.github.javaparser.symbolsolver.JavaSymbolSolver)1 ClassLoaderTypeSolver (com.github.javaparser.symbolsolver.resolution.typesolvers.ClassLoaderTypeSolver)1 CombinedTypeSolver (com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSolver)1 ReflectionTypeSolver (com.github.javaparser.symbolsolver.resolution.typesolvers.ReflectionTypeSolver)1