analyze_method
Analyze a Java method in a single call: get signature, parameters, exceptions, incoming/outgoing calls, and override info. Uses zero-based line/column coordinates.
Instructions
Comprehensive method analysis in a single call.
USAGE: analyze_method(filePath="path/to/File.java", line=N, column=N) OUTPUT: Method info, parameters, exceptions, callers, callees, override info
Combines:
Method info (signature, modifiers, return type)
Parameters with types
Declared exceptions
Incoming calls (who calls this method)
Outgoing calls (what this method calls)
Override information (super method, overriding methods)
Use this instead of multiple calls to get_method_at_position + call hierarchy tools.
IMPORTANT: Uses ZERO-BASED coordinates.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to source file | |
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| maxCallers | No | Maximum callers to return (default 20) | |
| maxCallees | No | Maximum callees to return (default 50) |