get_call_hierarchy_outgoing
Find all methods called by a Java method from a cursor position. Use it to understand dependencies and trace what a method invokes.
Instructions
Find all methods called by a method (outgoing calls).
USAGE: Position cursor on a method name OUTPUT: List of methods that this method calls
A call in a lambda written in the method is the method's call; a call in the body of an anonymous or local class declared in it is a call of that class's member, as get_call_hierarchy_incoming reports it. Creating an anonymous class, and its arguments, are calls of the method; the creation is a call of the superclass constructor the anonymous class's constructor runs (Object() for an interface), returning the anonymous class.
IMPORTANT: Uses ZERO-BASED coordinates.
Useful for understanding what a method depends on.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Path to source file |