Interface Markup

All Superinterfaces:
Marker
All Known Implementing Classes:
Markup.Debug, Markup.Error, Markup.Info, Markup.Warn

@Incubating(since="7.31.0") public interface Markup extends Marker
  • Method Details

    • getMessage

      String getMessage()
    • getDetail

    • print

      default String print(Cursor cursor, UnaryOperator<String> commentWrapper, boolean verbose)
      Specified by:
      print in interface Marker
      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.
    • error

      static <T extends Tree> T error(T t, Throwable throwable)
    • warn

      static <T extends Tree> T warn(T t, Throwable throwable)
    • info

      static <T extends Tree> T info(T t, String message)
    • info

      static <T extends Tree> T info(T t, String message, @Nullable @Nullable String detail)
    • debug

      static <T extends Tree> T debug(T t, String message)
    • debug

      static <T extends Tree> T debug(T t, String message, @Nullable @Nullable String detail)
    • markup

      static <T extends Tree> T markup(T t, Markup markup)