Module swim.codec
Package swim.codec

Interface Display

  • All Known Implementing Classes:
    Diagnostic, Mark, Span, Tag

    public interface Display
    Type that can output a human readable display string. Display implementations may use Output.settings() to tailor the format of their display strings. For example, display strings may be stylized when OutputSettings.isStyled() returns true.
    • Method Detail

      • display

        void display​(Output<?> output)
        Writes a human readable, display-formatted string representation of this object to output.
        Throws:
        OutputException - if the output exits the cont state before the full display string has been written.