Class IndentationCodeBlock

java.lang.Object
de.spraener.nxtgen.SimpleStringCodeBlock
de.spraener.nxtgen.IndentationCodeBlock
All Implemented Interfaces:
CodeBlock

public class IndentationCodeBlock extends SimpleStringCodeBlock
  • Constructor Details

    • IndentationCodeBlock

      public IndentationCodeBlock(String linePrefix)
  • Method Details

    • println

      public void println(String lineText)
      Description copied from interface: CodeBlock
      Add a single line to the code block
      Specified by:
      println in interface CodeBlock
      Overrides:
      println in class SimpleStringCodeBlock
      Parameters:
      lineText - Some text to print into the codeblock
    • getLinePrefix

      public String getLinePrefix()