Top Fields Constructors Methods
org.glassfish.pfl.basic.reflection

public Class FieldValueHelper

extends Object
Class Inheritance
Imports
java.lang.reflect.Field

Field Summary

Modifier and TypeField and Description
private static final Bridge

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Object
getFieldValue(Object
the object holding the field
obj
,
final Field
the field whose value is to be returned.
field
)

Returns the value of a field in an object.

private static Object
private static Object
getPrivateFieldValue(Object obj, final Field field)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bridgeback to summary
private static final Bridge bridge

Constructor Detail

FieldValueHelperback to summary
public FieldValueHelper()

Method Detail

getFieldValueback to summary
public static Object getFieldValue(Object obj, final Field field) throws IllegalAccessException

Returns the value of a field in an object.

Parameters
obj:Object

the object holding the field

field:Field

the field whose value is to be returned.

Exceptions
IllegalAccessException:
if the field cannot directly be accessed.
getInacessibleFieldValueback to summary
private static Object getInacessibleFieldValue(Object obj, Field field)
getPrivateFieldValueback to summary
private static Object getPrivateFieldValue(Object obj, final Field field) throws IllegalAccessException