public abstract class Output extends InputOutput
| Modifier and Type | Class and Description |
|---|---|
static class |
Output.BreakTag
Unique identifier for a break.
|
EMPTY_RANGE, range0s, range1s, ranges| Constructor and Description |
|---|
Output() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
append(String text,
Range<Integer> range)
Output a string.
|
abstract void |
blankLine(int k,
OpsBuilder.BlankLineWanted wanted)
A blank line is or is not wanted here.
|
abstract CommentsHelper |
getCommentsHelper()
Get the
CommentsHelper. |
abstract void |
indent(int indent)
Indent by outputting
indent spaces. |
abstract void |
markForPartialFormat(Input.Token start,
Input.Token end)
Marks a region that can be partially formatted.
|
String |
toString() |
computeRanges, getLine, getLineCount, getRange0s, getRange1s, getRanges, makeKToIJ, setLinespublic abstract void indent(int indent)
indent spaces.indent - the current indentpublic abstract void append(String text, Range<Integer> range)
text - the stringrange - the Range corresponding to the stringpublic abstract void blankLine(int k,
OpsBuilder.BlankLineWanted wanted)
k - the Input.Tok indexwanted - whether a blank line is wanted herepublic abstract void markForPartialFormat(Input.Token start, Input.Token end)
public abstract CommentsHelper getCommentsHelper()
CommentsHelper.CommentsHelperpublic String toString()
toString in class InputOutputCopyright © 2015–2017 Google Inc.. All rights reserved.