/** * * @param string $name java class name, i.e java.math.BigInteger * @param array $args * @return JavaType */ public function createObject($name, array $args) { $this->protocol->createObjectBegin($name); $this->writeArgs($args); $this->protocol->createObjectEnd(); $val = $this->getInternalResult(); return $val; }