Class Format.Empty

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

public static class Format.Empty extends Format
Needed eg for case distinctions, when one alternative shall produce nothing.
See Also:
  • Constructor Details

    • Empty

      protected Empty()
      Constructor, leaving the indent to unspecified.
    • Empty

      protected Empty(int indent)
      Constructor, setting the 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
    • 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
    • indent

      public Format.Empty 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