JavaParserTypeSolver

Defines a directory containing source code that should be used for solving symbols. The directory must correspond to the root package of the files within.

Author

Federico Tomassetti

Constructors

Link copied to clipboard
constructor(srcDir: File)
constructor(srcDir: String)
constructor(srcDir: Path)
constructor(srcDir: File, parserConfiguration: ParserConfiguration)
constructor(srcDir: String, parserConfiguration: ParserConfiguration)
constructor(srcDir: Path, parserConfiguration: ParserConfiguration)
constructor(srcDir: Path, parserConfiguration: ParserConfiguration, cacheSizeLimit: Long)
constructor(srcDir: Path, javaParser: JavaParser, parsedFilesCache: Cache<Path, Optional<CompilationUnit>>, parsedDirectoriesCache: Cache<Path, List<CompilationUnit>>, foundTypesCache: Cache<String, SymbolReference<ResolvedReferenceTypeDeclaration>>)
Create a JavaParserTypeSolver with a custom cache system.

Properties

Link copied to clipboard
Link copied to clipboard
val JAVA_LANG_RECORD: String = "java.lang.Record"
Link copied to clipboard
open var parent: TypeSolver

Functions

Link copied to clipboard
abstract fun getParent(): TypeSolver
Link copied to clipboard
open fun getRoot(): TypeSolver
Link copied to clipboard
open fun hasType(name: String): Boolean
Link copied to clipboard
abstract fun setParent(parent: TypeSolver)
Link copied to clipboard
Link copied to clipboard
open fun solveTypeInModule(qualifiedModuleName: String, simpleTypeName: String): ResolvedReferenceTypeDeclaration
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun tryToSolveTypeInModule(qualifiedModuleName: String, simpleTypeName: String): SymbolReference<ResolvedReferenceTypeDeclaration>