Class ReflectUtils
java.lang.Object
org.eclipse.jetty.websocket.core.util.ReflectUtils
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidappend(StringBuilder str, Class<?> pojo, Method method) static voidappend(StringBuilder str, MethodType methodType) static voidappend(StringBuilder str, Method method) static MethodfindAnnotatedMethod(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 TypefindGenericTypeFor(Class<?> baseClass, Class<?> ifaceClass) static MethodfindMethod(Class<?> pojo, String methodName, Class<?>... params) static Class<?> getClassFromType(Type type) static booleanisAssignableFrom(Type superType, Type subType) Check if a type is assignable from another type.static booleanisDefaultConstructable(Class<?> clazz) static String 
- 
Constructor Details
- 
ReflectUtils
public ReflectUtils() 
 - 
 - 
Method Details
- 
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
 
 - 
findGenericTypeFor
 - 
isDefaultConstructable
 - 
toString
 - 
append
 - 
append
 - 
append
 - 
isAssignableFrom
Check if a type is assignable from another type. This only handles Class, ParameterizedType, and GenericArrayType, and does not handle wildcard types or type variables.- Parameters:
 superType- the superType.subType- the subType.- Returns:
 - true if the superType is assignable from the subType.
 
 - 
getClassFromType
 
 -