public interface ClassLookup
Modifier and Type | Method and Description |
---|---|
void |
addAlias(Class<?>... classes)
Add classes to the class lookup.
|
void |
addAlias(Class<?> clazz,
String names)
Add a class with a specific alias which may or may not have a package name.
|
Class<?> |
forName(CharSequence name)
Turn a string into a class
|
String |
nameFor(Class<?> clazz) |
default @NotNull ClassLookup |
wrap()
Wrap this class into
|
default @NotNull ClassLookup |
wrap(@NotNull ClassLoader classLoader)
Creates and returns a new ClassLookup wrapping this ClassLookup and using the
provided
classLoader to look up new classes. |
@NotNull default @NotNull ClassLookup wrap()
@NotNull default @NotNull ClassLookup wrap(@NotNull @NotNull ClassLoader classLoader)
classLoader
to look up new classes.Class<?> forName(CharSequence name) throws ClassNotFoundRuntimeException
name
- of the type/classClassNotFoundRuntimeException
String nameFor(Class<?> clazz) throws IllegalArgumentException
clazz
- to lookup an alias forIllegalArgumentException
- if used on a lambda function.void addAlias(Class<?>... classes)
classes
- to addCopyright © 2022. All rights reserved.