code: public int getIndex (String methodName) {
  		for (int i = 0, n = methodNames.length; i < n; i++)
  			if (methodNames[i].equals(methodName)) return i;
  		throw new IllegalArgumentException("Unable to find non-private method: " + methodName);
  	}
docs: Returns the index of the first method with the specified name.