} else {
argTypeNames = new String[0];
}
// Get all methods of the class
List<Method> methodList = classType.methodsByName(params[0]);
Method matchedMethod = null;
/*
* As the jdb command argument doesn't supply the result
* value type, it's impossible to generate a jni signature
* for the specified method. I just have to search...
*/
for (Method m : methodList) {
List<String> types = m.argumentTypeNames();
if (types.size() != argTypeNames.length) {
continue;
} else {
boolean matched = true;
for (int i = 0; i < argTypeNames.length; i++) {
if (!types.get(i).equals(argTypeNames[i])) {
matched = false;
break;
}
}
if (matched) {
matchedMethod = m;
break;
}
}
}
if (null != matchedMethod) {
Location loc = matchedMethod.location();
if (null != loc) {
BreakpointRequest breakpointRequest =
jdb.eventRequestManager.
createBreakpointRequest(loc);
breakpointRequest.setSuspendPolicy(