Obtain the value currently in the Java field. Does not read from native memory. @param field field to look up @return current field value (Java-side only)
(Field field)
| 650 | * @return current field value (Java-side only) |
| 651 | */ |
| 652 | Object getFieldValue(Field field) { |
| 653 | try { |
| 654 | return field.get(this); |
| 655 | } |
| 656 | catch (Exception e) { |
| 657 | throw new Error("Exception reading field '" + field.getName() + "' in " + getClass(), e); |
| 658 | } |
| 659 | } |
| 660 | |
| 661 | /** |
| 662 | * @param field field to set |
no test coverage detected