YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
org.seamless.util.Reflections Class Reference
Collaboration diagram for org.seamless.util.Reflections:
Collaboration graph

Static Public Member Functions

static Object invoke (Method method, Object target, Object... args) throws Exception
 
static Object get (Field field, Object target) throws Exception
 
static Method getMethod (Class clazz, String name)
 
static void set (Field field, Object target, Object value) throws Exception
 
static String getMethodPropertyName (String methodName)
 
static Method getGetterMethod (Class clazz, String name)
 
static List< Method > getMethods (Class clazz, Class annotation)
 
static Field getField (Class clazz, String name)
 
static List< Field > getFields (Class clazz, Class annotation)
 
static< T > List< Class<?> > getTypeArguments (Class< T > baseClass, Class<? extends T > childClass)
 Get the actual type arguments a child class has used to extend a generic base class.
 
static Class<?> getClass (Type type)
 Get the underlying class for a type, or null if the type is a variable type.
 
static Object getAndWrap (Field field, Object target)
 
static void setAndWrap (Field field, Object target, Object value)
 
static Object invokeAndWrap (Method method, Object target, Object... args)
 
static String toString (Member member)
 
static Class classForName (String name) throws ClassNotFoundException
 
static boolean isClassAvailable (String name)
 
static Class getCollectionElementType (Type collectionType)
 
static Class getMapKeyType (Type collectionType)
 
static Method getSetterMethod (Class clazz, String name)
 
static Method getMethod (Annotation annotation, String name)
 
static boolean isInstanceOf (Class clazz, String name)
 
static String toClassNameString (String sep, Object... objects)
 
static String unqualify (String name)
 
static String unqualify (String name, char sep)
 
static String decapitalize (String name)
 

Detailed Description

Author
Christian Bauer

Member Function Documentation

◆ getClass()

static Class<?> org.seamless.util.Reflections.getClass ( Type  type)
static

Get the underlying class for a type, or null if the type is a variable type.

Parameters
typethe type
Returns
the underlying class

Referenced by org.seamless.util.Reflections.getClass(), and org.seamless.util.Reflections.getTypeArguments().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTypeArguments()

static< T > List< Class<?> > org.seamless.util.Reflections.getTypeArguments ( Class< T >  baseClass,
Class<? extends T >  childClass 
)
static

Get the actual type arguments a child class has used to extend a generic base class.

Parameters
baseClassthe base class
childClassthe child class
Returns
a list of the raw classes for the actual type arguments.
Here is the call graph for this function:

The documentation for this class was generated from the following file: