Skip to main content

Concepts & explanations

Docs that explain key concepts in OpenRewrite.

📄️ Markers

Markers annotate LST elements with metadata. Visitors can read or attach any type implementing the Marker interface to any LST element's Markers. Markers can be used to identify search results or to communicate between Recipes during OpenRewrite execution. When an LST is printed back to source code most markers, being metadata, have no textual representation within the source. The exception is SearchResult Markers which are printed as comments that indicate the result of a search. OpenRewrite attaches framework provided markers to LSTs.