Software Pretty Printer JRefactory Printing Elixir Extensions Line Numbering Metrics Stub Generator Dev Utilities Requested Features Release Notes Download Contributors |  | ## Software::JRefactory - Extract Method |
#### Extract Method You select a portion of a method in your software. You select from the menu the extract method command (or press Control+Shift+E in JBuilder). The system prompts you to enter the name of the method. A new method is created in the class that contains as a body the portion that you selected. The software attempts to identify the parameters needed to call the method. A parameter list is created. All places in the current source file where an identical parse tree is found, it is replaced with an invocation to the extracted method. You can re-order the parameters and select the return type from a drop down list. I'm interested in knowing whether you think that the return type should be automatically selected based on it's use. Let me know if you think this is required.
| Last Modified: February 22, 2001 |