push_down
Move a method or field from a superclass into its subclasses, removing it from the superclass. Returns text edits for manual application. Requires prior load_project.
Instructions
Push a method or field down into the declaring class's subclasses and remove it from the declaring class.
USAGE: Position on the member name in the superclass. OUTPUT: editsByFile covering the superclass (member removed) and each subclass (member added); 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) |