Skip to main content

Java extractor

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:
Running differens old.java new.java:

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.