|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.compiler.TabbedPrintWriter
This class implements a tabbed print writer.
Field Summary | |
protected int |
column
Current column number. |
protected int |
line
Current line numer. |
protected int |
pos
Indenting position. |
Constructor Summary | |
TabbedPrintWriter(java.io.Writer writer)
Constructs a tabbed printer writer. |
Method Summary | |
void |
add(int pos)
Increment tab. |
void |
close()
Close the stream at the end. |
int |
getColumn()
|
int |
getLine()
|
int |
getPos()
|
void |
print(java.lang.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 |
|
Field Detail |
protected int pos
protected int line
protected int column
Constructor Detail |
public TabbedPrintWriter(java.io.Writer writer)
fileName
- The file into 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(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |