JavaMethod javaMethod = new JavaMethod(modifiers, returnType, argNames, argTypes, null, methodName);
javaClassRep.addMethod(javaMethod);
// Add a comment indicating which CAL function this
// corresponds to.
JavaDocComment comment = new JavaDocComment(methodName);
comment.addLine("This method implements the logic of the CAL function " + javaDefn.getModuleName() + "." + javaDefn.getFunctionName());
comment.addLine("This version of the logic returns an unboxed value.");
javaMethod.setJavaDocComment(comment);
// Add the throws declaration
javaMethod.addThrows(JavaTypeName.CAL_EXECUTOR_EXCEPTION);