Package org.openrewrite.marker
Interface Marker
- All Known Subinterfaces:
BuildEnvironment,Markup,SourceSet
- All Known Implementing Classes:
AlreadyReplaced,BitbucketBuildEnvironment,BuildMetadata,BuildTool,BuildToolFailure,CircleCiBuildEnvironment,CommitMessage,CustomBuildEnvironment,DeclarativeNamedStyles,DeserializationError,DroneBuildEnvironment,FileListing,Generated,GithubActionsBuildEnvironment,GitlabBuildEnvironment,GitProvenance,JenkinsBuildEnvironment,LstProvenance,Markup.Debug,Markup.Error,Markup.Info,Markup.Warn,NamedStyles,OperatingSystemProvenance,OutdatedSerializer,ParseExceptionResult,ParseWarning,Range,RecipesThatMadeChanges,SearchResult,TeamcityBuildEnvironment,TravisBuildEnvironment
public interface Marker
-
Method Summary
-
Method Details
-
getId
UUID getId()An id that can be used to identify a particular marker, even after transformations have taken place on it- Returns:
- A unique identifier
-
withId
-
print
- Parameters:
cursor- The cursor at the point where the marker is being visited.commentWrapper- A function that wraps arbitrary text in a multi-line comment that is language-specific.- Returns:
- The printed representation of the marker.
-