|
Anyframe Web | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanyframe.web.springmvc.util.ria.mip.ReflectionHelp
public class ReflectionHelp
| Constructor Summary | |
|---|---|
ReflectionHelp()
|
|
| Method Summary | |
|---|---|
static java.lang.reflect.Field[] |
getAllDeclaredFields(java.lang.Class target)
Get all declared fields - helpful for retrieving all the fields of an object, including those inherited from parent classes. |
static java.util.List |
getFields(java.lang.Object bean)
Get all declared fields - helpful for retrieving all the fields of an object, including those inherited from parent classes. |
static java.lang.Object |
getFieldValue(java.lang.reflect.Field field,
java.lang.Object bean)
Get a field's value. |
static java.lang.Object |
newInstance(java.lang.Class createClass)
Factory method that returns a new instance of the given Class. |
static void |
setField(java.lang.reflect.Field field,
java.lang.Object bean,
java.lang.Object value)
Set a field's value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionHelp()
| Method Detail |
|---|
public static java.lang.reflect.Field[] getAllDeclaredFields(java.lang.Class target)
target - The class to examine.
public static java.util.List getFields(java.lang.Object bean)
bean - The object to examine.
public static void setField(java.lang.reflect.Field field,
java.lang.Object bean,
java.lang.Object value)
field - The class field to set.bean - The specific object that contains the field.value - The value that will be applied to the field.
public static java.lang.Object getFieldValue(java.lang.reflect.Field field,
java.lang.Object bean)
field - The class field.bean - The specific object to examine.
public static java.lang.Object newInstance(java.lang.Class createClass)
createClass - The Class to create an object from.
|
Anyframe Web | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||