Class CodeGenerator
- java.lang.Object
-
- org.cakelab.blender.typemap.NameMapping
-
- org.cakelab.blender.generator.utils.CodeGenerator
-
- Direct Known Subclasses:
ClassGenerator
,FieldVisitor
,GCodeSection
,GField
,ImportSectionGenerator
public abstract class CodeGenerator extends NameMapping
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CodeGenerator(int initialIndent)
CodeGenerator(GCodeSection other)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getIndentString(int indentionLevel)
void
indent(int n)
abstract void
reset()
-
Methods inherited from class org.cakelab.blender.typemap.NameMapping
getFieldDescriptorName, mangle, mapClass2Struct, mapStruct2Class, toCamelCase, toFirstLowerCase, toGetterMethodName, toSetterMethodName
-
-
-
-
Field Detail
-
NL
protected static final java.lang.String NL
- See Also:
- Constant Field Values
-
TAB
protected static final java.lang.String TAB
- See Also:
- Constant Field Values
-
indent
protected java.lang.String indent
-
-
Constructor Detail
-
CodeGenerator
protected CodeGenerator(int initialIndent)
-
CodeGenerator
public CodeGenerator(GCodeSection other)
-
-