public class FieldValueHelper extends Object
| Constructor and Description |
|---|
FieldValueHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getFieldValue(Object obj,
Field field)
Returns the value of a field in an object.
|
public static Object getFieldValue(Object obj, Field field) throws IllegalAccessException
obj - the object holding the fieldfield - the field whose value is to be returned.IllegalAccessException - if the field cannot directly be accessed.Copyright © 2011–2019 Eclipse Foundation. All rights reserved.