MCPcopy Create free account
hub / github.com/BaseXdb/basex / invoke

Method invoke

basex-core/src/main/java/org/basex/util/Reflect.java:196–203  ·  view source on GitHub ↗

Invokes the specified method. @param method method to run @param object object (null for static methods) @param args arguments @return result of method call or null

(final Method method, final Object object, final Object... args)

Source from the content-addressed store, hash-verified

194 * @return result of method call or {@code null}
195 */
196 public static Object invoke(final Method method, final Object object, final Object... args) {
197 try {
198 return method != null ? method.invoke(object, args) : null;
199 } catch(final Throwable ex) {
200 Util.debug(ex);
201 return null;
202 }
203 }
204
205 /**
206 * Returns the value of a field.

Callers 9

FunctionsClass · 0.95
XsltFnClass · 0.95
closeMethod · 0.95
stemMethod · 0.95
stemMethod · 0.95
initMethod · 0.95
newDictMethod · 0.95
stemMethod · 0.95
LogTargetEnum · 0.95

Calls 2

debugMethod · 0.95
invokeMethod · 0.65

Tested by

no test coverage detected