public abstract class Output extends InputOutput
Modifier and Type | Class and Description |
---|---|
static class |
Output.BreakTag
Unique identifier for a break.
|
EMPTY_RANGE, 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, 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(Input.Token start, Input.Token end)
public abstract CommentsHelper getCommentsHelper()
CommentsHelper
.CommentsHelper
public String toString()
toString
in class InputOutput
Copyright © 2015–2017 Google Inc.. All rights reserved.