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 StringBuilderappendTypeName(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 intfindTypeParameterIndex(Class<?> clazz, TypeVariable<?> needVar) static booleanisDefaultConstructable(Class<?> clazz) private static booleanresolveGenericRef(ReflectUtils.GenericRef ref, Class<?> clazz, Type type) private static booleanresolveGenericRef(ReflectUtils.GenericRef ref, Type type) static StringtoShortName(Type type) static Stringstatic StringtrimClassName(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
-