inline_method
Replace a method call with its body to simplify Java code. Requires source availability and works best with straightforward methods.
Instructions
Inline a method call by replacing it with the method body.
Returns the text edit needed to inline the method call. The caller should apply this edit to perform the inlining.
USAGE: Position cursor on a method call OUTPUT: Edit to replace call with method body
IMPORTANT: Uses ZERO-BASED coordinates.
LIMITATIONS:
Method must be in the same project (source available)
Works best with simple methods (no complex control flow)
Single return statement is handled, multiple returns may need review
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to source file containing the method call | |
| line | Yes | Zero-based line number of method call | |
| column | Yes | Zero-based column number (on method name) |