Package deltix.util.jcg.scg
Class SourceCodePrinter
- java.lang.Object
-
- deltix.util.jcg.scg.SourceCodePrinter
-
- Direct Known Subclasses:
NiceSourceCodePrinter
public class SourceCodePrinter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Appendableout
-
Constructor Summary
Constructors Constructor Description SourceCodePrinter(java.lang.Appendable out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()intgetIndent()voidindent(int offset)voidnewLine()voidprint(java.lang.Object... args)voidprint(java.lang.String s)voidprintf(java.lang.String fmt, java.lang.Object... args)voidprintln()voidprintln(java.lang.Object... args)voidprintModifiers(int mods)voidprintRefClassName(java.lang.String cn)voidprintRefClassName(java.lang.String className, java.lang.String[] typeArgs)voidsetIndent(int indent)
-
-
-
Method Detail
-
getIndent
public int getIndent()
-
setIndent
public void setIndent(int indent)
-
finish
public void finish() throws java.io.IOException- Throws:
java.io.IOException
-
newLine
public void newLine() throws java.io.IOException- Throws:
java.io.IOException
-
indent
public void indent(int offset) throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println() throws java.io.IOException- Throws:
java.io.IOException
-
println
public void println(java.lang.Object... args) throws java.io.IOException- Throws:
java.io.IOException
-
printRefClassName
public void printRefClassName(java.lang.String cn) throws java.io.IOException- Throws:
java.io.IOException
-
printRefClassName
public void printRefClassName(java.lang.String className, java.lang.String[] typeArgs) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(java.lang.String s) throws java.io.IOException- Throws:
java.io.IOException
-
print
public void print(java.lang.Object... args) throws java.io.IOException- Throws:
java.io.IOException
-
printf
public void printf(java.lang.String fmt, java.lang.Object... args) throws java.io.IOException- Throws:
java.io.IOException
-
printModifiers
public void printModifiers(int mods) throws java.io.IOException- Throws:
java.io.IOException
-
-