net.sf.farrago.catalog.codegen
Class FactoryGen.ForkWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
net.sf.farrago.catalog.codegen.FactoryGen.ForkWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
- Enclosing class:
- FactoryGen
private static class FactoryGen.ForkWriter
- extends PrintWriter
Writer which takes two underlying writers, and automatically writes
method bodies to one, and method prototypes to the other.
Methods inherited from class java.io.PrintWriter |
append, append, append, checkError, close, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inMethod
private boolean inMethod
pwInterface
private final PrintWriter pwInterface
pwClass
private final PrintWriter pwClass
FactoryGen.ForkWriter
protected FactoryGen.ForkWriter(PrintWriter pwInterface,
PrintWriter pwClass)
print
public void print(String x)
- Overrides:
print
in class PrintWriter
println
public void println(String x)
- Overrides:
println
in class PrintWriter
flush
public void flush()
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class PrintWriter