| |
|
| java.lang.Object org.acm.seguin.pretty.LineQueue
All known Subclasses: org.acm.seguin.pretty.line.NumberedLineQueue,
LineQueue | public class LineQueue (Code) | | Stores a queue of lines to be printed
author: Chris Seguin |
lineNumber | protected int lineNumber(Code) | | The current line number
|
LineQueue | public LineQueue(PrintWriter init)(Code) | | Constructor for the LineQueue object
Parameters: init - Description of Parameter |
appendCategoryComment | public void appendCategoryComment(String comment, String prefix)(Code) | | Appends a comment to the file
Parameters: comment - the comment to append Parameters: prefix - the prefix to the line |
appendSingleLineComment | public void appendSingleLineComment(String comment, String prefix)(Code) | | Appends a comment to the file
Parameters: comment - the comment to append Parameters: prefix - the prefix to the line |
flush | public void flush()(Code) | | Flushes all the lines in the buffer
|
flushFirstLine | public void flushFirstLine()(Code) | | Flushes the first line in the cache
|
getCurrentLine | public int getCurrentLine()(Code) | | Returns the current line
the line number |
getOutput | protected PrintWriter getOutput()(Code) | | Gets the Output attribute of the LineQueue object
The Output value |
println | public void println(String value)(Code) | | Description of the Method
Parameters: value - Description of Parameter |
setAbsoluteCommentSpacing | public void setAbsoluteCommentSpacing(int value)(Code) | | Sets the AbsoluteCommentSpacing attribute of the LineQueue object
Parameters: value - The new AbsoluteCommentSpacing value |
setIncrementalCommentSpacing | public void setIncrementalCommentSpacing(int value)(Code) | | Sets the IncrementalCommentSpacing attribute of the LineQueue object
Parameters: value - The new IncrementalCommentSpacing value |
setOwnline | public void setOwnline(boolean value)(Code) | | Sets the Ownline attribute of the LineQueue object
Parameters: value - The new Ownline value |
setOwnlineCode | public void setOwnlineCode(boolean value)(Code) | | Sets the OwnlineCode attribute of the LineQueue object
Parameters: value - The new OwnlineCode value |
setSharedIncremental | public void setSharedIncremental(boolean value)(Code) | | Sets the SharedIncremental attribute of the LineQueue object
Parameters: value - The new SharedIncremental value |
writeln | protected void writeln(String value)(Code) | | Writes a single line to the output stream
Parameters: value - Description of Parameter |
|
|
|