Adds a new method to the type, with the specified name, method attributes, and method signature.
name The name of the method. name cannot contain embedded nulls. attributes The attributes of the method. returnType The return type of the method. parameterTypes The types of the parameters of the method.
The defined method.