| Package | Description |
|---|---|
| xtc.parser | |
| xtc.tree | |
| xtc.type | |
| xtc.util |
| Modifier and Type | Field and Description |
|---|---|
protected Printer |
CodeGenerator.printer
The printer utility.
|
protected Printer |
PrettyPrinter.printer
The printer for this pretty printer.
|
| Constructor and Description |
|---|
CodeGenerator(Runtime runtime,
Analyzer analyzer,
AST ast,
Printer printer)
Create a new code generator.
|
PrettyPrinter(Printer printer,
AST ast,
boolean verbose)
Create a new pretty printer.
|
| Modifier and Type | Field and Description |
|---|---|
protected Printer |
Transducer.printer
The printer.
|
protected Printer |
ParseTreePrinter.printer
The printer.
|
| Modifier and Type | Method and Description |
|---|---|
Printer |
Printer.align(int alignment)
Print whitespace to align the output.
|
Printer |
Printer.buffer()
Start buffering the output.
|
Printer |
Printer.column(int column)
Set the current column to the specified number.
|
Printer |
Printer.decr()
Decrease the current indentation level.
|
Printer |
Printer.escape(char c)
Print the specified character using C escapes.
|
Printer |
Printer.escape(char c,
int flags)
Print the specified character with the specified escape sequences.
|
Printer |
Printer.escape(java.lang.String s)
Print the specified string using C escapes.
|
Printer |
Printer.escape(java.lang.String s,
int flags)
Print the specified string with the specified escape sequences.
|
Printer |
Printer.fit()
Ensure that the buffer contents fit onto the current line.
|
Printer |
Printer.fit(int align)
Ensure that the buffer contents fit onto the current line.
|
Printer |
Printer.fit(java.lang.String prefix)
Ensure that the buffer contents fit onto the current line.
|
Printer |
Printer.fitMore()
Ensure that the buffer contents fit onto the current line.
|
Printer |
Printer.flush()
Flush the underlying print writer.
|
Printer |
Printer.format(Node n)
Format the specified node.
|
Printer |
Printer.format(Node n,
boolean locate)
Format the specified node.
|
Printer |
Printer.incr()
Increase the current indentation level.
|
Printer |
Printer.indent()
Indent.
|
Printer |
Printer.indentLess()
Indent one tab stop less than the current indentation level.
|
Printer |
Printer.indentMore()
Indent one tab stop more than the current indentation level.
|
Printer |
Printer.line(long line)
Set the current line to the specified number.
|
Printer |
Printer.lineUp(Locatable locatable)
Line this printer up at the specified locatable object's
location.
|
Printer |
Printer.lineUp(Locatable locatable,
int before)
Line this printer up at the specified number of characters before
the specified locatable object's location,
|
Printer |
Printer.loc(Locatable locatable)
Print the location for the specified locatable object.
|
Printer |
Printer.p(Attribute attribute)
Print the specified attribute.
|
Printer |
Printer.p(char c)
Print the specified character.
|
Printer |
Printer.p(Comment comment)
Print the specified comment.
|
Printer |
Printer.p(double d)
Print the specified double.
|
Printer |
Printer.p(int i)
Print the specified integer.
|
Printer |
Printer.p(long l)
Print the specified long.
|
Printer |
Printer.p(Node node)
Print the specified node.
|
Printer |
Printer.p(java.lang.String s)
Print the specified string.
|
Printer |
Printer.pad(long l,
int width)
Print the specified long while also padding it to the specified
width with leading spaces.
|
Printer |
Printer.pln()
Print a newline.
|
Printer |
Printer.pln(char c)
Print the specified character followed by a newline.
|
Printer |
Printer.pln(double d)
Print the specified double followed by a newline.
|
Printer |
Printer.pln(int i)
Print the specified integer followed by a newline.
|
Printer |
Printer.pln(long l)
Print the specified long followed by a newline.
|
Printer |
Printer.pln(java.lang.String s)
Print the specified string followed by a newline.
|
Printer |
Printer.reset()
Reset this printer.
|
Printer |
Printer.sep()
Print an indented separation comment.
|
Printer |
Printer.setLevel(int level)
Set the current indentation level.
|
Printer |
Printer.unbuffer()
Stop buffering the output.
|
Printer |
Printer.wrap(int alignment,
java.lang.String text)
Print the specified text.
|
| Constructor and Description |
|---|
ParseTreePrinter(Printer printer)
Create a new parse tree printer.
|
Transducer(Printer printer)
Create a new transducer.
|
Transducer(Printer printer,
java.util.Map<java.lang.String,java.lang.String> variables)
Create a new transducer.
|
| Modifier and Type | Field and Description |
|---|---|
protected Printer |
SourcePrinter.printer
The printer utility.
|
protected Printer |
TypePrinter.printer
The printer utility.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AST.print(Type type,
Printer printer,
boolean refIsDecl,
boolean qualified,
java.lang.String module)
Print the specified type.
|
| Constructor and Description |
|---|
SourcePrinter(Printer printer)
Create a new source printer.
|
TypePrinter(Printer printer)
Create a new type printer.
|
| Modifier and Type | Field and Description |
|---|---|
protected Printer |
Runtime.console
The console printer.
|
protected Printer |
Runtime.errConsole
The error console printer.
|
| Modifier and Type | Method and Description |
|---|---|
Printer |
Runtime.console()
Get a printer to the console.
|
Printer |
Runtime.errConsole()
Get a printer to the error console.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SymbolTable.Scope.dump(Printer printer)
Dump the contents of this scope.
|
void |
Tool.printHeader(Printer printer)
Print a tool header to the specified printer.
|
void |
Runtime.setConsole(Printer console)
Update the printer to the console.
|
void |
Runtime.setErrConsole(Printer console)
Update the printer to the error console.
|
Copyright © 2014. All Rights Reserved.