Package de.cronn.reflection.util
Class ClassUtils
java.lang.Object
de.cronn.reflection.util.ClassUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcreateNewInstance(Class<T> sourceClass) static <T> TcreateNewInstanceLike(T source) static <A extends Annotation>
AfindAnnotation(Method method, Class<A> annotationType) findMethodsByArgumentTypes(Class<?> classToSearchIn, Class<?>... argumentTypes) getAllDeclaredMethods(Class<?> clazz) static Set<de.cronn.reflection.util.MethodSignature> getAllDeclaredMethodSignatures(Class<?> clazz) static <T> @NotNull MethodgetMethod(Class<T> beanClass, PropertyGetter<T> getterMethod) static <T> @NotNull MethodgetMethod(Class<T> beanClass, VoidMethod<T> voidMethod) static <T> @NotNull MethodgetMethod(T bean, PropertyGetter<T> getterMethod) static <T> @NotNull StringgetMethodName(Class<T> beanClass, PropertyGetter<T> getterMethod) static <T> @NotNull StringgetMethodName(Class<T> beanClass, VoidMethod<T> voidMethod) static <T> @NotNull StringgetMethodName(T bean, PropertyGetter<T> getterMethod) static <T> @NotNull StringgetMethodName(T bean, VoidMethod<T> voidMethod) static <T> Class<T> getRealClass(Class<T> clazz) static <T> Class<T> getRealClass(T object) static <T> @NotNull MethodgetVoidMethod(Class<T> beanClass, VoidMethod<T> voidMethod) static <T> @NotNull StringgetVoidMethodName(Class<T> beanClass, VoidMethod<T> voidMethod) static <T> @NotNull StringgetVoidMethodName(T bean, VoidMethod<T> voidMethod) static booleanhasMethodWithSameSignature(Class<?> clazz, Method method) static booleanhaveSameSignature(Method oneMethod, Method otherMethod) static booleanisFromPackage(Class<?> clazz, String packageName) static booleanstatic booleanisProxyClass(Class<?> clazz)
-
Method Details
-
getRealClass
-
getRealClass
-
createNewInstanceLike
public static <T> T createNewInstanceLike(T source) -
isFromPackage
-
createNewInstance
-
getVoidMethodName
-
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
-
getMethodName
-
getMethodName
@NotNull public static <T> @NotNull String getMethodName(Class<T> beanClass, PropertyGetter<T> getterMethod) -
getMethod
-
getMethodName
-
getMethodName
@NotNull public static <T> @NotNull String getMethodName(Class<T> beanClass, VoidMethod<T> voidMethod) -
isProxy
-
isProxyClass
-
haveSameSignature
-
findMethodsByArgumentTypes
-
hasMethodWithSameSignature
-
getAllDeclaredMethods
-
getAllDeclaredMethodSignatures
-
findAnnotation
-