Code example for Field

Methods: getType

0
        return field;
    } 
 
    @SuppressWarnings("unchecked") 
    public Class<V> getJavaClass() {
        return (Class<V>) field.getType();
    } 
 
    public V getValue(Object instance) {
        setAccessible(); 
        return getFieldValue(field, instance, getJavaClass());
    } 
 
    public void setValue(Object instance, V value) {
        setAccessible(); 
        setFieldValue(true, field, instance, value);
    } 
 
    public Class<?> getDeclaringClass() {
        return field.getDeclaringClass();
    }