|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.jmlunit.FancyTabbedPrintWriter
A more convenient print writer.
Class Specifications |
public invariant this.TAB_SIZE > 0; public invariant 0 <= this.leftMargin; private invariant_redundantly this.tabSize > 0; private invariant this.pos >= 0; private represents TAB_SIZE <- this.tabSize; private represents leftMargin <- this.pos; |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Model Field Summary | |
int |
leftMargin
|
int |
TAB_SIZE
|
Model fields inherited from class java.lang.Object |
_getClass, objectState, theString |
Ghost Field Summary |
Ghost fields inherited from class java.lang.Object |
objectTimesFinalized, owner |
Field Summary | |
private int |
pos
|
private int |
tabSize
|
private TabbedPrintWriter |
writer
The writer to which the output is to be printed. |
Constructor Summary | |
FancyTabbedPrintWriter(non_null Writer writer)
Initialize this fancy tabbed print writer. |
|
FancyTabbedPrintWriter(non_null Writer writer,
int tabSize)
Initialize this fancy tabbed print writer. |
Model Method Summary |
Model methods inherited from class java.lang.Object |
hashValue |
Method Summary | |
void |
close()
Close this file. |
void |
indent()
Indents one TAB_SIZE. |
void |
newLine()
Prints a line separator. |
void |
print(non_null Object s)
Prints the given object. |
void |
print(non_null String s)
Prints the given string. |
void |
println(non_null Object s)
Prints the given object with a trailing line separator. |
void |
printlnIn(non_null Object s)
Prints the given object with one tabSize indentation and a trailing line separator. |
void |
setTabSize(int n)
Set the tab size to the given integer. |
void |
undent()
Und-ndents one tabSize. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Model Field Detail |
public int TAB_SIZE
public int leftMargin
Field Detail |
private TabbedPrintWriter writer
private int tabSize
private int pos
Constructor Detail |
public FancyTabbedPrintWriter(non_null Writer writer)
public FancyTabbedPrintWriter(non_null Writer writer, int tabSize)
Method Detail |
public void indent()
public void undent()
public void print(non_null Object s)
public void print(non_null String s)
public void println(non_null Object s)
public void printlnIn(non_null Object s)
public void newLine()
public void setTabSize(int n)
public void close()
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |