Class Format.Subst

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

public static class Format.Subst extends Format
bt [__] FIXME DOK FEHLT, NEVER TESTED !?!? NEVER USED !?!?
See Also:
  • Field Details

    • body

      protected final Format body
    • context

      protected final Format.Context context
    • partial

      protected final boolean partial
  • Constructor Details

  • Method Details

    • indent

      public Format.Subst 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
    • 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
    • eval

      public Format eval(Format.Context c, boolean partial)
      Description copied from class: Format
      Return the result of replacing all variables with the bindings in the given Context. Will be overridden only by Variables, which need look-up in the context, and by Compound for descending into the sub-formats. These methods do not use the Visitor/Matcher framework, but direct method invocation and basic method dispatch for descending to child nodes.
      Overrides:
      eval in class Format
      partial - decides when a Variable not defined in the context is found: if true the Variable stays aunaltered; if false an IllegalArgumentException is thrown.
    • 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
    • getPartial

      public boolean getPartial()
      Getter used by diagnosis.
    • getContext

      public Format.Context getContext()
      Getter used by diagnosis.
    • getBody

      public Format getBody()
      Getter used by diagnosis.