jvmcallstr
jvmcallstr |
Purpose
Synopsis
function jvmcallstr(qualifiedmethodname:string) : string
function jvmcallstr(qualifiedmethodname:string, ...) : string
function jvmcallstr(targetobject:jvmobject,methodname:string) : string
function jvmcallstr(targetobject:jvmobject,methodname:string, ...) : string
Arguments
qualifiedmethodname
|
The name of the static method, including class and package name,
e.g.
"com.fico.examples.MathOperations.multiply"
|
targetobject
|
The Java object on which to invoke an instance method
|
methodname
|
The name of an instance method, not including class and package name,
e.g.
"multiply"
|
...
|
Following the method name, specify zero or more values to pass as arguments to the Java method.
|
Further information
1.
mosjvm will look in the class for a method with the given argument types that is declared as returning a
java.lang.String. If such a method cannot be found, the model will terminate with a runtime error.
2. The types of value that may be passed as method arguments are discussed earlier in this guide.
3. If
mosjvm has not yet loaded the Java Virtual Machine into the Mosel process, it will be loaded by this function. If Java cannot be found or an error occurs loading it, the model will terminate with a runtime error.
Related topics