org.glassfish.pfl.dynamic.codegen.impl
Class CodegenPrinter
java.lang.Object
org.glassfish.pfl.basic.algorithm.Printer
org.glassfish.pfl.dynamic.codegen.impl.CodegenPrinter
public class CodegenPrinter
- extends Printer
Extends the file utility Printer with line numbers that are
also optionally stored as Attributes in Nodes for annotating the AST.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodegenPrinter
public CodegenPrinter(java.io.PrintStream ps)
CodegenPrinter
public CodegenPrinter(java.io.PrintStream ps,
int increment,
char padChar)
lineNumber
public int lineNumber()
p
public CodegenPrinter p(java.lang.String str)
- Overrides:
p in class Printer
p
public CodegenPrinter p(java.lang.Object obj)
- Overrides:
p in class Printer
in
public CodegenPrinter in()
- Overrides:
in in class Printer
out
public CodegenPrinter out()
- Overrides:
out in class Printer
nl
public CodegenPrinter nl()
- Overrides:
nl in class Printer
nl
public CodegenPrinter nl(Node node)