Interface ProjectIdentity

All Superinterfaces:
org.openrewrite.marker.Marker
All Known Implementing Classes:
JavaProject

public interface ProjectIdentity extends org.openrewrite.marker.Marker
A marker that identifies the project a source file belongs to. Implemented by markers attached at parse time, such as JavaProject (rewrite-java) and GradleProject (rewrite-gradle). Lets code that only needs the project name look it up uniformly via getMarkers().findFirst(ProjectIdentity.class) without coupling to a specific marker type.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from interface org.openrewrite.marker.Marker

    getId, print, withId
  • Method Details

    • getProjectName

      String getProjectName()