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(int k)
Marks the boundary of a region that can be partially formatted.
|
String |
toString() |
computeRanges, getLine, getLineCount, getRange0s, getRange1s, getRanges, makeKToIJ, setLines
public 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(int k)
k
- the token indexpublic abstract CommentsHelper getCommentsHelper()
CommentsHelper
.CommentsHelper
public String toString()
toString
in class InputOutput
Copyright © 2015–2016 Google Inc.. All rights reserved.