|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugins.rest.common.util.ReflectionUtils
public class ReflectionUtils
A class to simplify some reflection calls.
| Constructor Summary | |
|---|---|
ReflectionUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
getFieldValue(java.lang.reflect.Field field,
java.lang.Object object)
Gets the value of the field for the given object. |
static void |
setFieldValue(java.lang.reflect.Field field,
java.lang.Object object,
java.lang.Object value)
Sets the value of the field for the given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionUtils()
| Method Detail |
|---|
public static java.lang.Object getFieldValue(java.lang.reflect.Field field,
java.lang.Object object)
field for the given object. It will change the accessibility of the field if necessary.
Setting it back to its original value at the end of the method call.
field - the field to read fromobject - the object to read the field from
public static void setFieldValue(java.lang.reflect.Field field,
java.lang.Object object,
java.lang.Object value)
field for the given object. It will change the accessibility of the field if necessary.
Setting it back to its original value at the end of the method call.
field - the field to set the value ofobject - the object to for which to set the field value.value - the new value to be set to the field of object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||