public abstract class AbstractPhase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Environment |
environment
Every phase needs to have the environment defined
|
protected RuntimeData |
runtimeData
Every phase needs to have the runtime defined.
|
| Constructor and Description |
|---|
AbstractPhase(Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
indent(FormattingPrintStream out,
int n)
Outputs the proper number of spaces, as needed by param n.
|
protected HtmlWriter.HtmlValue |
left(Object o)
Format a report entry for left alignment
|
protected HtmlWriter.HtmlValue |
right(Object o)
Format a report entry for right alignment
|
protected String |
span(String s)
Produce one span
|
protected String |
span(String s,
String className)
Produce one span
|
protected Environment environment
protected RuntimeData runtimeData
public AbstractPhase(Environment environment)
protected void indent(FormattingPrintStream out, int n)
An indentation is four spaces for C, and 2 for java and pascal
out - is the output stream to be written ton - is the number of indentations.protected HtmlWriter.HtmlValue left(Object o)
o - is the object to left alignprotected HtmlWriter.HtmlValue right(Object o)
o - is the object to right alignprotected String span(String s, String className)
s - is the span contentsclassName - is the optional CSS class name, can be nullCopyright © 2017. All rights reserved.