MCPcopy Index your code
hub / github.com/java-native-access/jna / getFieldValue

Method getFieldValue

src/com/sun/jna/Structure.java:652–659  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 6

readFieldMethod · 0.95
writeFieldMethod · 0.95
deriveLayoutMethod · 0.95
toStringMethod · 0.95
getFieldTypeInfoMethod · 0.95
getTypedValueMethod · 0.80

Calls 2

getNameMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected