pull_up
Move a method or field from a subclass to its superclass by specifying the file path and zero-based coordinates of the member declaration.
Instructions
Pull a method or field up into the superclass and remove it from the declaring subclass.
USAGE: Position on the member name in the subclass. OUTPUT: editsByFile covering the superclass (member added) and the subclass (member removed); warnings from JDT's condition checking. Edits are returned as text - apply them yourself.
IMPORTANT: Uses ZERO-BASED coordinates.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to source file containing the member | |
| line | Yes | Zero-based line number of the member declaration | |
| column | Yes | Zero-based column number (on the member name) |