Class Format.Markup

java.lang.Object
eu.bandm.tools.format.Format
eu.bandm.tools.format.Format.Markup
All Implemented Interfaces:
Formattable, Serializable, Cloneable
Enclosing class:
Format

public static class Format.Markup extends Format
Printed literally to the output, but not included in width calculation.
See Also:
  • Field Details

    • content

      protected final String content
      The mark-up text.
    • isright

      protected boolean isright
      Whether this mark-up is the right=closing part of a pair=parantheses.
  • Constructor Details

    • Markup

      protected Markup(String s, boolean isright)
      Constructor which sets the contents and unsets the indent value. Factory methods are preferable.
    • Markup

      protected Markup(String s, boolean isright, int indent)
  • Method Details

    • doprint

      protected void doprint(Format.FormatPrinter v)
      Description copied from class: Format
      Over-ridden by all sub-classes of Format, for performing the adquate print operations. To be printed is the raison d'ĂȘtre of Format objects. These methods do not use the Visitor/Matcher framework, but direct method invocation and basic method dispatch for descending to child nodes.
      Specified by:
      doprint in class Format
    • indent

      public Format.Markup indent(int i)
      Description copied from class: Format
      Returns a clone of this with the new value of Format.indent. (The built-in "clone()" functionality cannot be used, since field "indent" is final).
      Specified by:
      indent in class Format
    • debugPrefix

      public String debugPrefix(int n)
      Description copied from class: Format
      Overridden by subclasses to deliver a printable representation for debugging purpose.
      Specified by:
      debugPrefix in class Format
      Parameters:
      n - the maximal number of characters
    • getContent

      public String getContent()
      Getter used by diagnosis.
    • getIsright

      public boolean getIsright()
      Getter used by diagnosis.