Code example for Field

Methods: getDeclaringClass

0
        setAccessible(); 
        setFieldValue(true, field, instance, value);
    } 
 
    public Class<?> getDeclaringClass() {
        return field.getDeclaringClass();
    } 
 
    public boolean isReadOnly() { 
        return false; 
    } 
 
    public void setAccessible() { 
        Reflections.setAccessible(field);
    } 
 
    @Override 
    public String toString() {
        return field.toString();
    }