Class OutdentationFormatter

java.lang.Object
org.eclipse.epsilon.egl.output.OutdentationFormatter
All Implemented Interfaces:
Formatter

public class OutdentationFormatter extends Object implements Formatter
Formats the text by outdenting -%] sections
  • Field Details

    • outdentation

      protected int outdentation
    • outdentations

      protected Map<Integer,Integer> outdentations
    • outputBuffer

      protected OutputBuffer outputBuffer
  • Constructor Details

    • OutdentationFormatter

      public OutdentationFormatter(OutputBuffer outputBuffer)
  • Method Details

    • format

      public String format(String text)
      Specified by:
      format in interface Formatter
    • outdent

      protected String outdent(String line, int outdentation)
    • outdent

      public void outdent(int offset)
    • indent

      public void indent(int offset)