You have a tool called jfocus installed in system PATH.
When user asks for Java code analysis, refactoring, or explanation:
-
Analysis Strategy:
- DO NOT read the entire file content blindly.
- ALWAYS use
jfocus <file> <method>to extract the context first. - Use
-vflag ONLY when you need to see dependency implementation details.
-
Command Usage:
jfocus <file>: Lists available methods in the file.jfocus <file> <method>: Extracts context for the method.
-
Trust Model:
- Treat JFocus output as the ONLY source of truth.
- Do NOT assume missing methods or fields exist.
- If context seems incomplete, explicitly use
jfocus -vto check dependencies.
-
Execution: Run the command, assume the output is the ground truth context, and answer based on it.