private static void setFieldValue ( final Object classInstance , final Field classField , final JBBPAbstractField binField , final Object value ) { try { classField . set ( classInstance , value ) ; } catch ( IllegalArgumentException ex ) { throw new JBBPMapperException ( "Can't set value to a mapping field" , binField , classInstance . getClass ( ) , classField , ex ) ; } catch ( IllegalAccessException ex ) { throw new JBBPMapperException ( "Can't get access to a mapping field" , binField , classInstance . getClass ( ) , classField , ex ) ; } }
Set a value to a field of a class instance . Can t be used for static fields!