|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.pretty.LineQueue
public class LineQueue
Stores a queue of lines to be printed
Field Summary | |
---|---|
protected int |
lineNumber
The current line number |
Constructor Summary | |
---|---|
LineQueue(java.io.PrintWriter init)
Constructor for the LineQueue object |
Method Summary | |
---|---|
void |
appendCategoryComment(java.lang.String comment,
java.lang.String prefix)
Appends a comment to the file |
void |
appendSingleLineComment(java.lang.String comment,
java.lang.String prefix)
Appends a comment to the file |
void |
flush()
Flushes all the lines in the buffer |
void |
flushFirstLine()
Flushes the first line in the cache |
int |
getCurrentLine()
Returns the current line |
protected java.io.PrintWriter |
getOutput()
Gets the Output attribute of the LineQueue object |
void |
println(java.lang.String value)
Description of the Method |
void |
setAbsoluteCommentSpacing(int value)
Sets the AbsoluteCommentSpacing attribute of the LineQueue object |
void |
setIncrementalCommentSpacing(int value)
Sets the IncrementalCommentSpacing attribute of the LineQueue object |
void |
setOwnline(boolean value)
Sets the Ownline attribute of the LineQueue object |
void |
setOwnlineCode(boolean value)
Sets the OwnlineCode attribute of the LineQueue object |
void |
setSharedIncremental(boolean value)
Sets the SharedIncremental attribute of the LineQueue object |
protected void |
writeln(java.lang.String value)
Writes a single line to the output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int lineNumber
Constructor Detail |
---|
public LineQueue(java.io.PrintWriter init)
init
- Description of ParameterMethod Detail |
---|
public void setAbsoluteCommentSpacing(int value)
value
- The new AbsoluteCommentSpacing valuepublic void setIncrementalCommentSpacing(int value)
value
- The new IncrementalCommentSpacing valuepublic void setOwnline(boolean value)
value
- The new Ownline valuepublic void setSharedIncremental(boolean value)
value
- The new SharedIncremental valuepublic void setOwnlineCode(boolean value)
value
- The new OwnlineCode valuepublic int getCurrentLine()
public void println(java.lang.String value)
value
- Description of Parameterpublic void appendSingleLineComment(java.lang.String comment, java.lang.String prefix)
comment
- the comment to appendprefix
- the prefix to the linepublic void appendCategoryComment(java.lang.String comment, java.lang.String prefix)
comment
- the comment to appendprefix
- the prefix to the linepublic void flushFirstLine()
public void flush()
protected java.io.PrintWriter getOutput()
protected void writeln(java.lang.String value)
value
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |