@ Override public Object invoke ( Object [ ] vals ) { try { if ( isStatic ( ) ) { return field . get ( null ) ; } else { return field . get ( vals [ 0 ] ) ; } } catch ( IllegalArgumentException e ) { throw e ; } catch ( IllegalAccessException e ) { // constructor should prevent this throw new RuntimeException ( "can't access field" ) ; } }
Reads this Field .