public class GCodeSection extends CodeGenerator
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuffer |
currentLine |
indent, NL, TAB
Constructor and Description |
---|
GCodeSection(GCodeSection other) |
GCodeSection(int initialIndent) |
Modifier and Type | Method and Description |
---|---|
GCodeSection |
append(int i) |
GCodeSection |
append(java.lang.String text) |
GCodeSection |
appendln() |
GCodeSection |
appendln(java.lang.String line) |
java.util.ArrayList<java.lang.String> |
getLines() |
int |
numLines() |
void |
reset() |
void |
sortLines()
Sorts existing lines by alphabetic order.
|
void |
sortLines(java.util.Comparator<java.lang.String> c)
Sorts existing lines by the order defined by the given comparator.
|
java.lang.String |
toString(int indent) |
getIndentString, indent, toCamelCase, toFirstLowerCase
public GCodeSection(int initialIndent)
public GCodeSection(GCodeSection other)
public void reset()
reset
in class CodeGenerator
public java.lang.String toString(int indent)
public GCodeSection appendln(java.lang.String line)
public GCodeSection append(java.lang.String text)
public GCodeSection appendln()
public int numLines()
public java.util.ArrayList<java.lang.String> getLines()
public GCodeSection append(int i)
public void sortLines()
public void sortLines(java.util.Comparator<java.lang.String> c)