Class ReflectUtils
java.lang.Object
org.eclipse.jetty.websocket.common.util.ReflectUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringBuilder
appendTypeName
(StringBuilder sb, Type type, boolean ellipses) static Class
<?> findGenericClassFor
(Class<?> baseClass, Class<?> ifaceClass) Given a Base (concrete) Class, find the interface specified, and return its concrete Generic class declaration.private static int
findTypeParameterIndex
(Class<?> clazz, TypeVariable<?> needVar) static boolean
isDefaultConstructable
(Class<?> clazz) private static boolean
resolveGenericRef
(ReflectUtils.GenericRef ref, Class<?> clazz, Type type) private static boolean
resolveGenericRef
(ReflectUtils.GenericRef ref, Type type) static String
toShortName
(Type type) static String
static String
trimClassName
(String name)
-
Constructor Details
-
ReflectUtils
public ReflectUtils()
-
-
Method Details
-
appendTypeName
-
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
-
findTypeParameterIndex
-
isDefaultConstructable
-
resolveGenericRef
-
resolveGenericRef
-
toShortName
-
toString
-
trimClassName
-