JavaParserTypeSolver

constructor(srcDir: File)(source)
constructor(srcDir: String)(source)
constructor(srcDir: Path)(source)
constructor(srcDir: File, parserConfiguration: ParserConfiguration)(source)
constructor(srcDir: String, parserConfiguration: ParserConfiguration)(source)
constructor(srcDir: Path, parserConfiguration: ParserConfiguration)(source)


constructor(srcDir: Path, parserConfiguration: ParserConfiguration, cacheSizeLimit: Long)(source)

Parameters

srcDir

is the source code directory for the type solver.

parserConfiguration

is the configuration the solver should use when inspecting source code files.

cacheSizeLimit

is an optional size limit to the internal caches used by this solver. Be advised that setting the size too low might lead to noticeable performance degradation. However, using a size limit is advised when solving symbols in large code sources. In such cases, internal caches might consume large amounts of heap space.


constructor(srcDir: Path, javaParser: JavaParser, parsedFilesCache: Cache<Path, Optional<CompilationUnit>>, parsedDirectoriesCache: Cache<Path, List<CompilationUnit>>, foundTypesCache: Cache<String, SymbolReference<ResolvedReferenceTypeDeclaration>>)(source)

Create a JavaParserTypeSolver with a custom cache system.

Parameters

srcDir

The source code directory for the type solver.

javaParser

The JavaParser to be used when parsing .java files.

parsedFilesCache

The cache to be used to store CompilationUnit that is associated with a file.

parsedDirectoriesCache

The cache to store the list of CompilationUnit in a given directory.

foundTypesCache

The cache that associated a qualified name to its SymbolReference.