Calls a Java method on the given object, or a static method of the class
named by the first argument. The second argument is the name of the method,
and subsequent arguments are passed to the method. Arguments are promoted
and overloaded methods selected precisely as for new.
The return value is converted to a suitable Jess value before being returned.
Array return values are converted to multifields.
The functor call may be omitted if the method being called
is non-static and the object is represented by a simple variable. The following
two method calls are equivalent:
;; These are legal and equivalent
(call ?vector addElement (new java.lang.String "Foo"))
(?vector addElement (new java.lang.String "Foo"))
call may not be omitted if the object comes from the return value
of another function call:
;; This is illegal
((new java.lang.Vector 10) addElement (new java.lang.String "Foo"))