Navigation

Operators and Keywords

Function List:

C++ API

: ret = javaMethod (methodname, obj)
: ret = javaMethod (methodname, obj, arg1, …)

Invoke the method methodname on the Java object obj with the arguments arg1, ….

For static methods, obj can be a string representing the fully qualified name of the corresponding class.

When obj is a regular Java object, structure-like indexing can be used as a shortcut syntax. For instance, the two following statements are equivalent

 ret = javaMethod ("method1", x, 1.0, "a string")
 ret = x.method1 (1.0, "a string")

javaMethod returns the result of the method invocation.

See also: methods, javaObject.

Package: octave