MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / invoke

Method invoke

reflection/SelectingMethods.java:13–20  ·  view source on GitHub ↗
(Object proxy, Method method, Object[] args)

Source from the content-addressed store, hash-verified

11 this.proxied = proxied;
12 }
13 @Override public Object
14 invoke(Object proxy, Method method, Object[] args)
15 throws Throwable {
16 if(method.getName().equals("interesting"))
17 System.out.println(
18 "Proxy detected the interesting method");
19 return method.invoke(proxied, args);
20 }
21}
22
23interface SomeMethods {

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected