public class IndentedRendererVisitor extends GenericReflectiveVisitor
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ENC |
protected java.lang.String |
INDENT |
protected java.lang.String |
linePrefix
String for the pretty linebreak.
|
protected java.lang.String |
NL |
private int |
prefixCount |
(package private) java.io.PrintWriter |
writer |
logger
Constructor and Description |
---|
IndentedRendererVisitor(java.io.PrintWriter writer) |
Modifier and Type | Method and Description |
---|---|
private void |
calcPrefix() |
protected void |
decreaseIndent()
Decreases the lineprefix by one INDENT
|
protected void |
increaseIndent()
Increases the lineprefix by one INDENT
|
protected void |
indentedOutput() |
protected void |
indentedOutput(java.lang.String s) |
protected void |
indentedOutputln() |
protected void |
indentedOutputln(java.lang.String s) |
protected void |
init(java.util.Properties p) |
protected void |
output(java.lang.String s) |
protected void |
outputln() |
protected void |
outputln(java.lang.String s) |
void |
setEncoding(java.lang.String encoding) |
void |
setIndentString(java.lang.String ind) |
void |
setNewLineString(java.lang.String nl) |
getMethod, subsumedInvocableMethod
java.io.PrintWriter writer
protected java.lang.String INDENT
protected java.lang.String NL
protected java.lang.String ENC
protected java.lang.String linePrefix
private int prefixCount
public IndentedRendererVisitor(java.io.PrintWriter writer)
public void setIndentString(java.lang.String ind)
public void setNewLineString(java.lang.String nl)
public void setEncoding(java.lang.String encoding)
protected void init(java.util.Properties p)
protected void increaseIndent()
protected void decreaseIndent()
private void calcPrefix()
protected void indentedOutputln(java.lang.String s)
protected void indentedOutput(java.lang.String s)
protected void indentedOutputln()
protected void indentedOutput()
protected void outputln(java.lang.String s)
protected void output(java.lang.String s)
protected void outputln()
(C) INRIA & friends, 2003-2020