This method of the Debugger Class queries about the execution model of a caller at the specified stack depth.
public static native int getExecutionModelOfCaller (int depth);
One of the EXEC_MODEL_XXX constants.