public class JandexReflection extends Object
| Constructor and Description |
|---|
JandexReflection() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
loadClass(ClassInfo clazz)
Loads a class corresponding to given
ClassInfo from the thread context classloader. |
static Class<?> |
loadRawType(Type type)
Loads a class corresponding to the raw type of given
Type from the thread context classloader. |
public static Class<?> loadRawType(Type type)
Type from the thread context classloader.
If there is no TCCL, the classloader that loaded JandexReflection is used.
Returns null when type is null.
Specifically:
void pseudo-type, returns void.class;int.class);String.class);String[][].class);List.class for List<String>);Number.class for ? extends Number), or Object.class if the wildcard type
has no upper bound (e.g. ? super Integer);Number.class for T extends Number & Comparable<T>), or Object.class
if the type variable has no bounds (e.g. just T);Number.class for
T extends Number & Comparable<T>), or Object.class if the type variable has no bounds
(e.g. just T);Object.class.Copyright © 2018–2022. All rights reserved.