public function invokeMethod(int $object_id, string $method, array $args = [])
    {
        $this->protocol->invokeBegin($object_id, $method);
        $this->writeArgs($args);

        $this->protocol->invokeEnd();
        $val = $this->getResult();

        return $val;
    }
public function invokeMethod(int $object_id, string $method, array $args = [])
    {
        $this->protocol->invokeBegin($object_id, $method);
        $this->writeArgs($args);

        $this->protocol->invokeEnd();
        $val = $this->getResult();

        return $val;
    }
public function invokeMethod ( int $ object_id , string $ method , array $ args = [ ] ) { $ this -> protocol -> invokeBegin ( $ object_id , $ method ) ; $ this -> writeArgs ( $ args ) ; $ this -> protocol -> invokeEnd ( ) ; $ val = $ this -> getResult ( ) ; return $ val ; }
Invoke a method on java object.

@param int    $object_id a java object or type
@param string $method    method name
@param array  $args      arguments to send with method

@return mixed
Invoke a method on java object .