| 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)
OpOp to a DocBuilder.add in interface Opbuilder - the DocBuilderpublic Doc.State computeBreaks(CommentsHelper commentsHelper, int maxWidth, Doc.State state)
DocDoc.computeBreaks in class DocmaxWidth - the maximum line widthstate - the current output statepublic void write(Output output)
DocDoc to an Output, after breaking decisions have been made.Copyright © 2015–2017 Google Inc.. All rights reserved.