Klasse NewlineOutlet

Alle implementierten Schnittstellen:
Outlet

public class NewlineOutlet extends OutletWithoutMergepoints
Creates new lines (\n or \r\n).
  • Felddetails

    • CARRIAGE_RETURN

      public static final char CARRIAGE_RETURN
      The carriage return char '\r'.
      Siehe auch:
    • NEWLINE

      public static final char NEWLINE
      The newline char '\r'.
      Siehe auch:
  • Konstruktordetails

    • NewlineOutlet

      public NewlineOutlet(QualifiedName name)
      Constructor.
      Parameter:
      name - the qualified name of the outlet.
  • Methodendetails

    • execute

      public OutletResult execute(ControllerState controllerState) throws GeneratorException
      Beschreibung aus Schnittstelle kopiert: Outlet
      Generates the output for this template into the Generated object.
      Angegeben von:
      execute in Schnittstelle Outlet
      Angegeben von:
      execute in Klasse OutletImpl
      Parameter:
      controllerState - the current controller state, not null.
      Gibt zurück:
      the output of the Outlet.
      Löst aus:
      GeneratorException - if generation fails.
    • getCount

      public int getCount()
      Returns how many newlines should be created.
      Gibt zurück:
      how many newlines should be created.
    • setCount

      public void setCount(int count)
      Sets how many newlines should be created.
      Parameter:
      count - how many newlines should be created.
    • isWindowsStyle

      public boolean isWindowsStyle()
      Returns whether windows newlines (\r\n) are used.
      Gibt zurück:
      whether windows newlines are used.
    • setWindowsStyle

      public void setWindowsStyle(boolean windowsStyle)
      Sets whether windows newlines (\r\n) are used.
      Parameter:
      windowsStyle - whether windows newlines should be used.