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

Method callback

test/com/sun/jna/CallbacksTest.java:349–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347 final boolean[] called = { false };
348 TestLibrary.VoidCallback cb = new TestLibrary.VoidCallback() {
349 @Override
350 public void callback() {
351 called[0] = true;
352 }
353 };
354 lib.callVoidCallback(cb);
355 assertTrue("Callback not called", called[0]);

Callers

nothing calls this directly

Calls 13

detachMethod · 0.95
getNameMethod · 0.95
isDaemonMethod · 0.80
getThreadGroupMethod · 0.80
getPointerMethod · 0.65
setValueMethod · 0.65
getValueMethod · 0.65
getNameMethod · 0.65
setNameMethod · 0.65
toArrayMethod · 0.45
intValueMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected