Class ReflectionUtils

java.lang.Object
com.querydsl.core.util.ReflectionUtils

public final class ReflectionUtils extends Object
ReflectionUtils provides Reflection related functionality
Author:
tiwe
  • Method Details

    • getAnnotatedElement

      public static AnnotatedElement getAnnotatedElement(Class<?> beanClass, String propertyName, Class<?> propertyClass)
    • getFieldOrNull

      @Nullable public static @Nullable Field getFieldOrNull(Class<?> beanClass, String propertyName)
    • getGetterOrNull

      @Nullable public static @Nullable Method getGetterOrNull(Class<?> beanClass, String name)
    • getGetterOrNull

      @Nullable public static @Nullable Method getGetterOrNull(Class<?> beanClass, String name, Class<?> type)
    • getTypeParameterCount

      public static int getTypeParameterCount(Type type)
    • getTypeParameterAsClass

      public static Class<?> getTypeParameterAsClass(Type type, int index)
    • getTypeParameter

      @Nullable public static @Nullable Type getTypeParameter(Type type, int index)
    • getSuperClasses

      public static Set<Class<?>> getSuperClasses(Class<?> cl)
    • getFields

      public static Set<Field> getFields(Class<?> cl)
    • getImplementedInterfaces

      public static Set<Class<?>> getImplementedInterfaces(Class<?> cl)