MCPcopy Create free account
hub / github.com/ddf-project/DDF / instanceInvoke

Method instanceInvoke

core/src/main/java/io/ddf/util/Utils.java:557–568  ·  view source on GitHub ↗
(Object... args)

Source from the content-addressed store, hash-verified

555 }
556
557 public Object instanceInvoke(Object... args) throws DDFException {
558 if (this.getObject() == null) throw new DDFException("An object is required to invoke the given method");
559 if (this.getMethod() == null) throw new DDFException("A method is required to invoke on the given object");
560
561 try {
562 return this.getMethod().invoke(this.getObject(), args);
563
564 } catch (Exception e) {
565 throw new DDFException(String.format("Error while invoking method %s on object %s", this.getMethod().getName(),
566 this.getObject().getClass().getName()), e);
567 }
568 }
569 }
570
571

Callers 2

predictMethod · 0.80
predictMethod · 0.80

Calls 3

getObjectMethod · 0.95
getMethodMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected