Add a method to the list of method members of this JDefinedClass instance.
@param mods Modifiers for this method
@param type Return type for this method
@param name Name of the method
@return Newly generated JMethod
Add a method to the list of method members of this JDefinedClass instance.
@param mods Modifiers for this method
@param type Return type for this method
@param name Name of the method
@return Newly generated JMethod
Returns the method that was exited.
@return a {@link Method} which mirrors the method that was exited.
@throws ObjectCollectedException may be thrown if classhas been garbage collected.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.