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

    Modifier and Type
    Method
    Description
    An id that can be used to identify a particular marker, even after transformations have taken place on it
    default String
    print(Cursor cursor, UnaryOperator<String> commentWrapper, boolean verbose)
     
    <M extends Marker>
    M
     
  • 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

      <M extends Marker> M withId(UUID id)
    • print

      default String print(Cursor cursor, UnaryOperator<String> commentWrapper, boolean verbose)
      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.