Class FieldValueHelper
java.lang.Object
org.glassfish.pfl.basic.reflection.FieldValueHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getFieldValue
(Object obj, Field field) Returns the value of a field in an object.private static Object
getInacessibleFieldValue
(Object obj, Field field) private static Object
getPrivateFieldValue
(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
-