The Robot Application Programming Interface Delegate Project
RAPID Logo

ReflectionUtils Class Reference

Collaboration diagram for ReflectionUtils:

List of all members.

Static Public Member Functions

static Field getField (Class<?> clazz, String fieldName)
 Returns the field with the specified name.
static< T > T get (Object target, String fieldName)
static< T > T get (Object target, Field field)
static void set (Object target, String fieldName, Object value)
static List< Field > getAllFields (Class<?> clazz)
 Returns a list of all the fields for a class and all of its relevant superclasses.
static List< Field > getAllFields (Class<?> clazz, boolean includeStaticFields)
 Returns a list of all the fields for a class and all of its relevant superclasses.
static boolean isCollection (Field f)
static boolean isMap (Field f)
static Method getMethod (Class<?> clazz, String methodName, Object...arguments)
 Returns the method with the specified name and matching arguments.
static< T > T invoke (Object target, String methodName, Object...arguments)
static< T > T invokeStatic (Class<?extends Object > clazz, String methodName, Object...arguments)
static Method getDeclaredMethod (Class clazz, String name, Object...args)
static< T > T construct (Class< T > clazz, Object...arguments) throws InstantiationException
static< T > Constructor< T > getDeclaredConstructor (Class< T > clazz, Object...args)

Static Package Functions

 [static initializer]
static String getClassNames (Object...list)

Member Function Documentation

[static initializer] ( ) [static, package]
static <T> T construct ( Class< T >  clazz,
Object...  arguments 
) throws InstantiationException [static]

Here is the call graph for this function:

static <T> T get ( Object  target,
Field  field 
) [static]
static <T> T get ( Object  target,
String  fieldName 
) [static]

Here is the call graph for this function:

static List<Field> getAllFields ( Class<?>  clazz) [static]
Parameters:
clazz
Returns:
static List<Field> getAllFields ( Class<?>  clazz,
boolean  includeStaticFields 
) [static]
Parameters:
clazz
includeStaticFields
Returns:

Here is the call graph for this function:

static String getClassNames ( Object...  list) [static, package]
static <T> Constructor<T> getDeclaredConstructor ( Class< T >  clazz,
Object...  args 
) [static]
static Method getDeclaredMethod ( Class  clazz,
String  name,
Object...  args 
) [static]
static Field getField ( Class<?>  clazz,
String  fieldName 
) [static]

This method will climb up the class hierarchy until it finds a field with the given name.

Parameters:
clazz
fieldName
Returns:
static Method getMethod ( Class<?>  clazz,
String  methodName,
Object...  arguments 
) [static]

This method will climb up the class hierarchy until it finds something.

Parameters:
clazz
methodName
arguments
Returns:

Here is the call graph for this function:

static <T> T invoke ( Object  target,
String  methodName,
Object...  arguments 
) [static]
static <T> T invokeStatic ( Class<?extends Object >  clazz,
String  methodName,
Object...  arguments 
) [static]

Here is the call graph for this function:

static boolean isCollection ( Field  f) [static]
static boolean isMap ( Field  f) [static]
static void set ( Object  target,
String  fieldName,
Object  value 
) [static]

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines