IntelliJ IDEA 14.0.0 Web Help

Extract Method Dialog for Groovy

Refactor | Extract MethodCtrl+Alt+M
Item Description
Visibility In this area, specify the visibility scope of the method to be generated.
Name In this text box, specify the name of the function or method to be generated on the basis of the selected source code.
12.0+Specify return type explicitly This check box is available if you invoke refactoring from the method of a Groovy class. Select this check box to return a data type of the value explicitly.
12.0+Use explicit return statement This check box is active if the method returns a value. You can omit return keyword if it is the last return statement in the method. If you select this check box the keyword is returned.
Parameters In this area, select parameters to be passed to the new method/function.
Move Up/Down Use these buttons to change the order of the parameters.
Signature preview In this read-only field, view the declaration of the new method/function.

See Also

Last modified: 12 November 2014
comments powered by Disqus