MCPcopy Create free account
hub / github.com/FongMi/TV / setProperty

Method setProperty

quickjs/src/main/java/com/fongmi/quickjs/method/Global.java:62–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 private void setProperty() {
63 for (Method method : getClass().getMethods()) {
64 if (!method.isAnnotationPresent(JSMethod.class)) continue;
65 ctx.getGlobalObject().setProperty(method.getName(), args -> {
66 try {
67 return method.invoke(this, args);
68 } catch (Exception e) {
69 return null;
70 }
71 });
72 }
73 }
74
75 private boolean submit(Runnable runnable) {
76 try {

Callers 8

GlobalMethod · 0.95
toObjectMethod · 0.80
successMethod · 0.80
errorMethod · 0.80
setHeaderMethod · 0.80
createCtxMethod · 0.80
getExtMethod · 0.80
jquery.min.jsFile · 0.80

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected