Class ClassUtils

java.lang.Object
de.cronn.reflection.util.ClassUtils

public final class ClassUtils extends Object
  • Method Details

    • getRealClass

      public static <T> Class<T> getRealClass(T object)
    • getRealClass

      public static <T> Class<T> getRealClass(Class<T> clazz)
    • createNewInstanceLike

      public static <T> T createNewInstanceLike(T source)
    • isFromPackage

      public static boolean isFromPackage(Class<?> clazz, String packageName)
    • createNewInstance

      public static <T> T createNewInstance(Class<T> sourceClass)
    • getVoidMethodName

      @NotNull public static <T> @NotNull String getVoidMethodName(T bean, VoidMethod<T> voidMethod)
    • getVoidMethodName

      @NotNull public static <T> @NotNull String getVoidMethodName(Class<T> beanClass, VoidMethod<T> voidMethod)
    • getVoidMethod

      @NotNull public static <T> @NotNull Method getVoidMethod(Class<T> beanClass, VoidMethod<T> voidMethod)
    • getMethod

      @NotNull public static <T> @NotNull Method getMethod(Class<T> beanClass, PropertyGetter<T> getterMethod)
    • getMethod

      @NotNull public static <T> @NotNull Method getMethod(T bean, PropertyGetter<T> getterMethod)
    • getMethodName

      @NotNull public static <T> @NotNull String getMethodName(T bean, PropertyGetter<T> getterMethod)
    • getMethodName

      @NotNull public static <T> @NotNull String getMethodName(Class<T> beanClass, PropertyGetter<T> getterMethod)
    • getMethod

      @NotNull public static <T> @NotNull Method getMethod(Class<T> beanClass, VoidMethod<T> voidMethod)
    • getMethodName

      @NotNull public static <T> @NotNull String getMethodName(T bean, VoidMethod<T> voidMethod)
    • getMethodName

      @NotNull public static <T> @NotNull String getMethodName(Class<T> beanClass, VoidMethod<T> voidMethod)
    • isProxy

      public static boolean isProxy(Object object)
    • isProxyClass

      public static boolean isProxyClass(Class<?> clazz)
    • haveSameSignature

      public static boolean haveSameSignature(Method oneMethod, Method otherMethod)
    • findMethodsByArgumentTypes

      public static List<Method> findMethodsByArgumentTypes(Class<?> classToSearchIn, Class<?>... argumentTypes)
    • hasMethodWithSameSignature

      public static boolean hasMethodWithSameSignature(Class<?> clazz, Method method)
    • getAllDeclaredMethods

      public static Set<Method> getAllDeclaredMethods(Class<?> clazz)
    • getAllDeclaredMethodSignatures

      public static Set<de.cronn.reflection.util.MethodSignature> getAllDeclaredMethodSignatures(Class<?> clazz)
    • findAnnotation

      public static <A extends Annotation> A findAnnotation(Method method, Class<A> annotationType)