TypeSolverBuilder

TypeSolverBuilder was created with the objective of simplifying the process of creating new type solved. Instead of invoking the constructor directly, the user can build it using the builder pattern.

Example 1: Solve JRE types:
    new TypeSolverBuilder()
         .withCurrentJRE()
         .build()
Example 2: Solve JRE and types defined in foo.jar:
    new TypeSolverBuilder()
         .withCurrentJRE()
         .withJAR("foo.jar")
         .build()

Author

4everTheOne

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun build(): TypeSolver
Convert the current build into a valid TypeSolver.
Link copied to clipboard
open fun with(@NonNull typeSolver: @NonNull TypeSolver): TypeSolverBuilder
Append a costum type solver to the build.
Link copied to clipboard
open fun withAAR(@NonNull pathToAar: @NonNull File): TypeSolverBuilder
open fun withAAR(@NonNull pathToAar: @NonNull String): TypeSolverBuilder
open fun withAAR(@NonNull pathToAar: @NonNull Path): TypeSolverBuilder
Allow the type solver to resolve types that are defined in a AAR file.
Link copied to clipboard
open fun withClassLoader(@NonNull classLoader: @NonNull ClassLoader): TypeSolverBuilder
Allow the type solver to resolve types using the provided ClassLoader.
Link copied to clipboard
Allow the type solver to resolve types that are defined in the current ClassLoader.
Link copied to clipboard
Allow the type solver to resolve types that are defined in the current Java Runtime Environment (JRE).
Link copied to clipboard
open fun withJAR(@NonNull pathToJar: @NonNull File): TypeSolverBuilder
open fun withJAR(@NonNull pathToJar: @NonNull String): TypeSolverBuilder
open fun withJAR(@NonNull pathToJar: @NonNull Path): TypeSolverBuilder
Allow the type solver to resolve types that are defined in a JAR file.
Link copied to clipboard
open fun withSourceCode(@NonNull pathToSourceCode: @NonNull File): TypeSolverBuilder
open fun withSourceCode(@NonNull pathToSourceCode: @NonNull String): TypeSolverBuilder
open fun withSourceCode(@NonNull pathToSourceCode: @NonNull Path): TypeSolverBuilder
Allow the type solver to resolve types using external source code.