javaMethod
- :
ret =javaMethod(methodname, javaobj, …)¶ - :
ret =javaMethod(methodname, classname, …)¶ Invoke the Java method methodname.
If javaobj is a Java object the method is called on that instance; if the second argument is a string naming a class, the matching static method of that class is called. Any further arguments are passed to the method.
myDate = javaObject ("java.util.Date"); javaMethod ("setMonth", myDate, 3); tf = javaMethod ("isNaN", "java.lang.Double", 2.2);