Skip to main content
The Java extractor maps tree-sitter Java CST nodes to canonical concepts. Class and method names come from the standard name field; variable names are recovered from the declarator.

Detected concepts

Example

Renaming a method:
old.java
new.java
Running differens old.java new.java:

Example: change the body

Keep the declaration name and change what it does:
The report groups the value edit under its containing declaration. Use --format=json to inspect the underlying action and context, or --format=llm for a compact report with source locations.

Known limitations

  • Lambda bodies are diffed structurally; a lambda extracted to a named method reports as an addition plus a body change, not an extraction.
  • Annotations are structure: adding an annotation reports as an insert, not an “annotated” action.