Top Description Fields Constructors Methods
org.glassfish.pfl.dynamic.codegen.impl

public Class CodegenPrinter

extends Printer
Class Inheritance
Imports
java.io.PrintStream, org.glassfish.pfl.basic.algorithm.Printer

Extends the file utility Printer with line numbers that are also optionally stored as Attributes in Nodes for annotating the AST.

Field Summary

Modifier and TypeField and Description
private int
pack-priv static Attribute<Integer>
Inherited from org.glassfish.pfl.basic.algorithm.Printer:
DEFAULT_INCREMENT

Constructor Summary

AccessConstructor and Description
public
public
CodegenPrinter(PrintStream ps, int increment, char padChar)

Method Summary

Modifier and TypeMethod and Description
public CodegenPrinter
public int
public CodegenPrinter
public CodegenPrinter
nl(Node node)

public CodegenPrinter
public CodegenPrinter
public CodegenPrinter
Inherited from org.glassfish.pfl.basic.algorithm.Printer:
indentpprintBufferrj

Field Detail

lineNumberback to summary
private int lineNumber
lineNumberAttributeback to summary
pack-priv static Attribute<Integer> lineNumberAttribute

Constructor Detail

CodegenPrinterback to summary
public CodegenPrinter(PrintStream ps)
CodegenPrinterback to summary
public CodegenPrinter(PrintStream ps, int increment, char padChar)

Method Detail

inback to summary
public CodegenPrinter in()

Overrides org.glassfish.pfl.basic.algorithm.Printer.in.

Annotations
@Override
lineNumberback to summary
public int lineNumber()
nlback to summary
public CodegenPrinter nl()

Overrides org.glassfish.pfl.basic.algorithm.Printer.nl.

Annotations
@Override
nlback to summary
public CodegenPrinter nl(Node node)
outback to summary
public CodegenPrinter out()

Overrides org.glassfish.pfl.basic.algorithm.Printer.out.

Annotations
@Override
pback to summary
public CodegenPrinter p(String str)

Overrides org.glassfish.pfl.basic.algorithm.Printer.p.

Annotations
@Override
pback to summary
public CodegenPrinter p(Object obj)

Overrides org.glassfish.pfl.basic.algorithm.Printer.p.

Annotations
@Override