Class SimpleFormatters.PartSeq

java.lang.Object
monq.jfa.textparts.SimpleFormatters.PartSeq
All Implemented Interfaces:
Formatter
Enclosing class:
SimpleFormatters

public static class SimpleFormatters.PartSeq extends Object implements Formatter
implements a Formatter the format method of which concatenates several parts of the given TextStore.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PartSeq(int from, int to)
     
    PartSeq(int from, int to, String sep, int partFrom, int partTo)
    the parameters define the range of parts to be concatenated by the format method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    arranges (some of) the pieces of text found in st or m in an implementation dependend manner and appends them to out.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PartSeq

      public PartSeq(int from, int to, String sep, int partFrom, int partTo)

      the parameters define the range of parts to be concatenated by the format method. Similar to TextStore indexing both int parameters may be negative. If the sep is not null it serves to separate the the parts in the output.

    • PartSeq

      public PartSeq(int from, int to)
  • Method Details

    • format

      public void format(StringBuilder sb, TextStore sp, Map<Object,Object> m)
      Description copied from interface: Formatter

      arranges (some of) the pieces of text found in st or m in an implementation dependend manner and appends them to out. Depending on the implementation, both, st and m or even both may be allowed to be null.

      Postcondition: This method may not change the content of dest other than by appending to it.

      Specified by:
      format in interface Formatter