Microsoft SDK for Java

do_execute_java_methodv

Calls a Java method or constructor and returns a 64-bit integer.

Syntax

int64_t __cdecl do_execute_java_methodv(ExecEnv *ee, void *obj, const char *method_name, const char *signature, struct methodblock *mb, bool_t isStaticCall, va_list args);

Parameters

*ee The placeholder for the execution environment, which is not needed by the Microsoft VM. This parameter should be set to NULL.
*obj The object pointer.
*method_name The name of the method to invoke. Set to NULL if using a method block.
*signature The types of parameters passed to the constructor. See execute_java_dynamic_method for a description of signature characters. Pass NULL if using a method block.
*mb The address of the cached method block data structure. Use get_methodblock to retrieve this. The underlying structure of the method block is not defined; it is used only to prevent accidental type misuse using the alternative, PVOID.
isStaticCall True if calling a static method, or false otherwise.
args The va_list used instead of ellipses.

Remarks

get_methodblock is a helper function for this function. It can be used when making repeated calls to a method to avoid the overhead of name lookup on each call. Note that invoking a Java method can cause garbage collections.

do_execute_java_methodV was added as of versions 2437 through 2925 of the Microsoft virtual machine.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.