|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.compiler.TabbedPrintWriter
public class TabbedPrintWriter
This class implements a tabbed print writer
| Field Summary | |
|---|---|
protected int |
column
|
protected int |
line
|
protected int |
pos
|
| Constructor Summary | |
|---|---|
TabbedPrintWriter(Writer writer)
construct a pretty printer object for java code |
|
| Method Summary | |
|---|---|
void |
add(int pos)
Increment tab |
void |
close()
Close the stream at the end |
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(TabbedPrintWriter other)
Clones all fields of this into |
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 |
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 |
|---|
protected int pos
protected int line
protected int column
| Constructor Detail |
|---|
public TabbedPrintWriter(Writer writer)
writer - underlying 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)
public Object deepClone()
deepClone in interface DeepCloneableprotected void deepCloneInto(TabbedPrintWriter other)
other
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||