analyze_change_impact
Trace the blast radius of changing a Java symbol: list every affected file and call site by depth or full transitive callers, including potential matches.
Instructions
Analyze the blast radius of changing a symbol.
USAGE: analyze_change_impact(filePath="path/to/File.java", line=10, column=5) OUTPUT: All files and call sites affected, grouped by file. Every reference at every depth is listed and counted; nothing is cut. A place JDT could not confirm is listed in potentialMatches with its depth, and the member holding it is followed no further.
Options:
depth: How many levels of callers to follow, 1 to 3 (default 1); any other depth is INVALID_PARAMETER depth=1: direct references only depth=2: references + callers of those references depth=3: three levels deep
transitive: full reverse closure over the project call graph (default false). No depth ceiling; follows calls, instantiations, field accesses, and override declarations (callers through an interface or superclass count). Returns affectedMethods + affectedFiles instead of callSites. Supports project methods, fields, and types.
maxResults: cap on affectedMethods in transitive mode (default 200)
potentialMatches, present only when there are any, holds the places JDT's search reports as possible matches but cannot confirm, because a type or name there does not resolve (a missing dependency or a compile error): count is their exact number, and locations lists them, as many as the results it stands beside may list. They are never counted or listed as results.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| depth | No | Levels of transitive callers to follow, 1 to 3 (default 1) | |
| column | Yes | Zero-based column number | |
| filePath | Yes | File containing the symbol | |
| maxResults | No | Cap on affectedMethods in transitive mode (default 200) | |
| transitive | No | Full reverse closure over the project graph, no depth ceiling (default false) |