Class ReflectUtils
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.util.ReflectUtils
-
public class ReflectUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ReflectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>findGenericClassFor(Class<?> baseClass, Class<?> ifaceClass)Given a Base (concrete) Class, find the interface specified, and return its concrete Generic class declaration.static booleanisDefaultConstructable(Class<?> clazz)static StringtoShortName(Type type)static StringtoString(Class<?> pojo, Method method)static StringtrimClassName(String name)
-
-
-
Method Detail
-
findGenericClassFor
public static Class<?> findGenericClassFor(Class<?> baseClass, Class<?> ifaceClass)
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
public static boolean isDefaultConstructable(Class<?> clazz)
-
-