Class FieldValueHelper
java.lang.Object
org.glassfish.pfl.basic.reflection.FieldValueHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetFieldValue(Object obj, Field field) Returns the value of a field in an object.private static ObjectgetInacessibleFieldValue(Object obj, Field field) private static ObjectgetPrivateFieldValue(Object obj, Field field)
-
Field Details
-
bridge
-
-
Constructor Details
-
FieldValueHelper
public FieldValueHelper()
-
-
Method Details
-
getFieldValue
Returns the value of a field in an object.- Parameters:
obj- the object holding the fieldfield- the field whose value is to be returned.- Throws:
IllegalAccessException- if the field cannot directly be accessed.
-
getPrivateFieldValue
- Throws:
IllegalAccessException
-
getInacessibleFieldValue
-