public final class ReflectUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBuildProducerOf(Type type,
Class<?> nestedType) |
static boolean |
isConsumerOf(Type type,
Class<?> nestedType) |
static boolean |
isListOf(Type type,
Class<?> nestedType) |
static boolean |
isOptionalOf(Type type,
Class<?> nestedType) |
static boolean |
isSupplierOf(Type type,
Class<?> nestedType) |
static boolean |
isSupplierOfOptionalOf(Type type,
Class<?> nestedType) |
static boolean |
isThingOf(Type type,
Class<?> thing,
Class<?> nestedType) |
static boolean |
rawTypeExtends(Type type,
Class<?> clazz) |
static boolean |
rawTypeIs(Type type,
Class<?> clazz) |
static Class<?> |
rawTypeOf(Type type) |
static Class<?> |
rawTypeOfParameter(Type type,
int paramIdx) |
static void |
setFieldVal(Field field,
Object obj,
Object value) |
static IllegalAccessError |
toError(IllegalAccessException e) |
static InstantiationError |
toError(InstantiationException e) |
static NoSuchFieldError |
toError(NoSuchFieldException e) |
static NoSuchMethodError |
toError(NoSuchMethodException e) |
static Type |
typeOfParameter(Type type,
int paramIdx) |
public static InstantiationError toError(InstantiationException e)
public static IllegalAccessError toError(IllegalAccessException e)
public static NoSuchMethodError toError(NoSuchMethodException e)
public static NoSuchFieldError toError(NoSuchFieldException e)
Copyright © 2019 JBoss by Red Hat. All rights reserved.