if (declaredMethods.length == 0) return new MethodOperation[0];
/* If there are methods, convert them to MethodOperations. */
MethodOperation[] mthds = new MethodOperation[declaredMethods.length];
for (int i = 0; i < mthds.length; i++) {
mthds[i] = new MethodOperation(clazz, declaredMethods[i]);
}
return mthds; // Return the MethodOperations.
}