Extract Method Dialog
For the information on how to extract a method and check code examples, refer to the Extract method section.
In this field, specify the name of the function or method to be generated on the basis of the selected source code.
In this area, specify the visibility scope of the method to be generated.
Select this checkbox to have a static method created.
This option inserts inferred
Select this option if you want to declare varargs instead of the array.
Select this option to fold the parameters, for example, if you have an array, like
Extract chained constructor
Use this option to extract chained constructor from the constructor body, replacing the original code with
This read-only field displays the name of the variable through which the output of the new method/function will be passed to the calling method/function. Depending on your choice in the Return output variable(s) through area, this variable either will be used in a return statement or will be declared as the passed by reference parameter of the new method/function.
Return output variable(s) through
In this area, specify the way in which the new method or function will return the output variables to the callee.
In this area, select parameters to be passed to the new method/function.
Use these buttons to change the order of the parameters.
In this read-only field, view the declaration of the new method.