Initializing help system before first use

jvmfindmethod

Purpose
Find a compatible instance method on the given class.
Synopsis
function jvmfindstaticmethod(classname:string, methodname:string, paramtypes:list of string) : jvmmethod
Arguments
classname 
The name of the class or interface on which to find the method, e.g. "java.util.List".
methodname 
The name of the method to find, e.g. "addAll"
paramtypes 
The class name for each method parameter, e.g. ["java.lang.String", "int", "double[]"]
Return value
A reference to the method
Further information
1. mosjvm will look for the instance method declared with the exact parameter types given. If none is found, it will look for the closest match to the given parameter types. If there are multiple method overloads that are equally close to the given parameter types, the jvmstatus flag will be set to true. If the jvmabortonexception parameter is true then the model will abort with an error.
2. The parameter types may be fully qualified class names (e.g. "java.lang.String"), primitive type names (e.g. "int"), or arrays of either (e.g. "java.lang.Double[]", "boolean[]").
3. If the specific class or method cannot be found, the jvmstatus flag will be set to true. If the jvmabortonexception parameter is true then the model will abort with an error.
Related topics

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.