Package io.quarkus.arc.impl
Class Reflections
- java.lang.Object
-
- io.quarkus.arc.impl.Reflections
-
public final class Reflections extends Object
Neither the class nor its methods are considered a public API and should only be used internally.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Constructor<?>
findConstructor(Class<?> clazz, Class<?>... parameterTypes)
static Field
findField(Class<?> clazz, String fieldName)
static Method
findMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes)
static <T> Class<T>
getRawType(Type type)
static Object
invokeMethod(Class<?> clazz, String name, Class<?>[] paramTypes, Object instance, Object[] args)
static Object
newInstance(Class<?> clazz, Class<?>[] parameterTypes, Object[] args)
static Object
readField(Class<?> clazz, String name, Object instance)
static void
writeField(Class<?> clazz, String name, Object instance, Object value)
-
-
-
Method Detail
-
findField
public static Field findField(Class<?> clazz, String fieldName)
- Parameters:
clazz
-fieldName
-- Returns:
- the field declared in the class hierarchy
-
findMethod
public static Method findMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes)
- Parameters:
clazz
-methodName
-parameterTypes
-- Returns:
- the method declared in the class hierarchy
-
findConstructor
public static Constructor<?> findConstructor(Class<?> clazz, Class<?>... parameterTypes)
-
newInstance
public static Object newInstance(Class<?> clazz, Class<?>[] parameterTypes, Object[] args)
-
writeField
public static void writeField(Class<?> clazz, String name, Object instance, Object value)
-
invokeMethod
public static Object invokeMethod(Class<?> clazz, String name, Class<?>[] paramTypes, Object instance, Object[] args)
-
-