Class GComment
- java.lang.Object
-
- org.cakelab.blender.typemap.NameMapping
-
- org.cakelab.blender.generator.utils.CodeGenerator
-
- org.cakelab.blender.generator.utils.GCodeSection
-
- org.cakelab.blender.generator.utils.GComment
-
- Direct Known Subclasses:
GJavaDoc
public class GComment extends GCodeSection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GComment.Type
-
Field Summary
Fields Modifier and Type Field Description static GComment
EMPTY
-
Fields inherited from class org.cakelab.blender.generator.utils.GCodeSection
currentLine
-
Fields inherited from class org.cakelab.blender.generator.utils.CodeGenerator
indent, NL, TAB
-
-
Constructor Summary
Constructors Constructor Description GComment(GComment other)
GComment(GComment.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GComment
append(java.lang.String text)
GComment
appendln()
GComment
appendln(java.lang.String line)
void
reset()
java.lang.String
toString(int indent)
-
Methods inherited from class org.cakelab.blender.generator.utils.GCodeSection
append, getLines, numLines, sortLines, sortLines
-
Methods inherited from class org.cakelab.blender.generator.utils.CodeGenerator
getIndentString, indent
-
Methods inherited from class org.cakelab.blender.typemap.NameMapping
getFieldDescriptorName, mangle, mapClass2Struct, mapStruct2Class, toCamelCase, toFirstLowerCase, toGetterMethodName, toSetterMethodName
-
-
-
-
Field Detail
-
EMPTY
public static final GComment EMPTY
-
-
Constructor Detail
-
GComment
public GComment(GComment.Type type)
-
GComment
public GComment(GComment other)
-
-
Method Detail
-
reset
public void reset()
- Overrides:
reset
in classGCodeSection
-
appendln
public GComment appendln(java.lang.String line)
- Overrides:
appendln
in classGCodeSection
-
appendln
public GComment appendln()
- Overrides:
appendln
in classGCodeSection
-
append
public GComment append(java.lang.String text)
- Overrides:
append
in classGCodeSection
-
toString
public java.lang.String toString(int indent)
- Overrides:
toString
in classGCodeSection
-
-