Class ReflectUtils
java.lang.Object
org.eclipse.jetty.websocket.core.internal.util.ReflectUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
append
(StringBuilder str, Class<?> pojo, Method method) static void
append
(StringBuilder str, MethodType methodType) static void
append
(StringBuilder str, Method method) static void
assertIsAnnotated
(Method method, Class<? extends Annotation> annoClass) static void
assertIsPublicNonStatic
(Method method) static void
assertIsReturn
(Method method, Class<?> type) static Method
findAnnotatedMethod
(Class<?> pojo, Class<? extends Annotation> anno) static Method[]
findAnnotatedMethods
(Class<?> pojo, Class<? extends Annotation> anno) static Class<?>
findGenericClassFor
(Class<?> baseClass, Class<?> ifaceClass) Given a Base (concrete) Class, find the interface specified, and return its concrete Generic class declaration.static Method
findMethod
(Class<?> pojo, String methodName, Class<?>... params) static boolean
isDefaultConstructable
(Class<?> clazz) static boolean
isSameParameters
(Class<?>[] actual, Class<?>[] params) static String
toShortName
(Type type) static String
static String
trimClassName
(String name)
-
Constructor Details
-
ReflectUtils
public ReflectUtils()
-
-
Method Details
-
assertIsAnnotated
-
assertIsPublicNonStatic
-
assertIsReturn
-
findMethod
-
findAnnotatedMethod
-
findAnnotatedMethods
-
findGenericClassFor
Given a Base (concrete) Class, find the interface specified, and return its concrete Generic class declaration.- Parameters:
baseClass
- the base (concrete) class to look inifaceClass
- the interface of interest- Returns:
- the (concrete) generic class that the interface exposes
-
isDefaultConstructable
-
isSameParameters
-
toShortName
-
toString
-
trimClassName
-
append
-
append
-
append
-