Package org.teavm.backend.c.generate
Class CodeWriter
- java.lang.Object
-
- org.teavm.backend.c.generate.CodeWriter
-
- Direct Known Subclasses:
BufferedCodeWriter
public abstract class CodeWriter extends Object
-
-
Constructor Summary
Constructors Constructor Description CodeWriter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidappend(String text)abstract voidflush()abstract CodeWriterfragment()CodeWriterindent()protected abstract voidindentBy(int amount)protected abstract voidnewLine()abstract voidnosource()CodeWriteroutdent()CodeWriterprint(String string)CodeWriterprintln()CodeWriterprintln(String string)CodeWriterprintStrictType(ValueType type)CodeWriterprintType(VariableType type)CodeWriterprintType(ValueType type)abstract voidsource(String fileName, int lineNumber)static StringstrictTypeAsString(ValueType type)static StringtypeAsString(ValueType type)
-
-
-
Method Detail
-
fragment
public abstract CodeWriter fragment()
-
println
public CodeWriter println()
-
println
public CodeWriter println(String string)
-
print
public CodeWriter print(String string)
-
indent
public CodeWriter indent()
-
outdent
public CodeWriter outdent()
-
printType
public CodeWriter printType(ValueType type)
-
printStrictType
public CodeWriter printStrictType(ValueType type)
-
printType
public CodeWriter printType(VariableType type)
-
newLine
protected abstract void newLine()
-
append
protected abstract void append(String text)
-
indentBy
protected abstract void indentBy(int amount)
-
flush
public abstract void flush()
-
source
public abstract void source(String fileName, int lineNumber)
-
nosource
public abstract void nosource()
-
-