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 Details

    • 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)
    • readField

      public static Object readField(Class<?> clazz, String name, Object instance)
    • 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)
    • getRawType

      public static <T> Class<T> getRawType(Type type)