Class SimpleFormatters.PartLen

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

public static class SimpleFormatters.PartLen extends Object implements Formatter

implements a Formatter the format method of which produces the length of a given part of the given TextStore.

  • Constructor Details

    • PartLen

      public PartLen(int partNo)
  • 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