Modifier and Type | Class and Description |
---|---|
static class |
Doc.Token.RealOrImaginary
Is a Token a real token, or imaginary (e.g., a token generated incorrectly, or an EOF)?
|
Doc.Break, Doc.FillMode, Doc.State, Doc.Token
Modifier and Type | Method and Description |
---|---|
void |
add(DocBuilder builder)
Add an
Op to a DocBuilder . |
Doc.State |
computeBreaks(CommentsHelper commentsHelper,
int maxWidth,
Doc.State state)
Make breaking decisions for a
Doc . |
String |
toString() |
void |
write(Output output)
Write a
Doc to an Output , after breaking decisions have been made. |
public void add(DocBuilder builder)
Op
Op
to a DocBuilder
.add
in interface Op
builder
- the DocBuilder
public Doc.State computeBreaks(CommentsHelper commentsHelper, int maxWidth, Doc.State state)
Doc
Doc
.computeBreaks
in class Doc
maxWidth
- the maximum line widthstate
- the current output statepublic void write(Output output)
Doc
Doc
to an Output
, after breaking decisions have been made.Copyright © 2015–2017 Google Inc.. All rights reserved.