find_reflection_usage
Identify Java reflection API calls in code to detect potential breaking changes from type or method renaming, revealing usages invisible to static analysis.
Instructions
Find places where Java reflection API is used.
USAGE: find_reflection_usage() OUTPUT: All reflection calls grouped by method type
Detects calls to:
Class.forName(), Class.newInstance()
Class.getMethod/getDeclaredMethod/getField/getDeclaredField
Class.getConstructor/getDeclaredConstructor
Method.invoke(), Field.get/set(), Constructor.newInstance()
These usages are invisible to static reference searches and can break when types or methods are renamed.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxResults | No | Maximum results per reflection method (default 100) |