public JsonNode callMethod ( final JsiiObjectRef objRef , final String method , final ArrayNode args ) { ObjectNode req = makeRequest ( "invoke" , objRef ) ; req . put ( "method" , method ) ; req . set ( "args" , args ) ; JsonNode resp = this . runtime . requestResponse ( req ) ; return resp . get ( "result" ) ; }
Calls a method on a remote object .