|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.compiler.TabbedPrintWriter
This class implements a tabbed print writer
| Field Summary | |
protected int |
column
|
protected int |
line
|
private PrintWriter |
p
|
protected int |
pos
|
| Constructor Summary | |
TabbedPrintWriter(Writer writer)
construct a pretty printer object for java code |
|
| Method Summary | |
void |
add(int pos)
Increment tab |
private void |
checkPos()
|
void |
close()
Close the stream at the end |
int |
getColumn()
|
int |
getLine()
|
int |
getPos()
|
void |
print(String s)
Print a string |
void |
println()
Print a new line |
void |
setPos(int pos)
Set pos |
private String |
space(int count)
|
private String |
spaceIn(int count)
|
void |
sub(int pos)
Decrement tab |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private PrintWriter p
protected int pos
protected int line
protected int column
| Constructor Detail |
public TabbedPrintWriter(Writer writer)
writer - the writer into which the code is generated| Method Detail |
public void close()
public int getLine()
public int getColumn()
public int getPos()
public void setPos(int pos)
public void add(int pos)
public void sub(int pos)
public void println()
public void print(String s)
private void checkPos()
private String space(int count)
private String spaceIn(int count)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||