public class ReflectionTypeSolver extends ClassLoaderTypeSolver
| Modifier and Type | Field and Description |
|---|---|
static Predicate<String> |
ALL_CLASSES
Class name filter matching all classes.
|
static Predicate<String> |
JCL_ONLY
Class name filter matching classes in the Java Class Library.
|
static Predicate<String> |
JRE_ONLY
Class name filter matching classes in the core Java standard library.
|
JAVA_LANG_OBJECT, JAVA_LANG_RECORD| Constructor and Description |
|---|
ReflectionTypeSolver()
Resolves classes from the JRE that is currently running.
|
ReflectionTypeSolver(boolean jreOnly) |
ReflectionTypeSolver(Predicate<String> classFilter) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
filterName(String name) |
getParent, setParent, tryToSolveTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRoot, getSolvedJavaLangObject, getSolvedJavaLangRecord, hasType, solveTypepublic static final Predicate<String> ALL_CLASSES
public static final Predicate<String> JRE_ONLY
java. and javax..public static final Predicate<String> JCL_ONLY
java.se module of Java 21, as well as
java.corba as of Java 9. In this way, it encompasses the JCL of all
Java version from Java 8 to 21.public ReflectionTypeSolver(Predicate<String> classFilter)
classFilter - a name-based filter indicating which types to resolve.
Similarily to ReflectionTypeSolver(boolean), this allows you to specify "I need to resolve certain classes (like the Java standard library), and whatever is available on the classpath is fine.".ALL_CLASSES,
JRE_ONLY,
JCL_ONLYpublic ReflectionTypeSolver(boolean jreOnly)
jreOnly - if true, will only resolve types from the java or javax packages.
This is an easy way to say "I need a JRE to solve classes, and the one that is currently running is fine."
If false, will resolve any kind of type.public ReflectionTypeSolver()
protected boolean filterName(String name)
filterName in class ClassLoaderTypeSolverCopyright © 2007–2025. All rights reserved.