ClassLoaderTypeSolver

This TypeSolver wraps a ClassLoader. It can solve all types that the given ClassLoader can load. This is intended to be used with custom classloaders. To support typical cases based on reflection just use the ReflectionTypeSolver

Author

Federico Tomassetti

Inheritors

Constructors

Link copied to clipboard
constructor(classLoader: ClassLoader)
constructor(classLoader: ClassLoader, moduleLayers: Iterable<Any>)
Create a ClassLoaderTypeSolver with a list of module layers to check when solving types in modules.

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 tryToSolveTypeInModule(qualifiedModuleName: String, simpleTypeName: String): SymbolReference<ResolvedReferenceTypeDeclaration>