public final class OpenOp extends Object implements Op
OpenOp opens a level. It is an Op in the sequence of Ops generated by
OpsBuilder. When the sequence is turned into a Doc by DocBuilder, Input.Toks delimited by OpenOp-CloseOp pairs turn into nested Doc.Levels.| Modifier and Type | Method and Description |
|---|---|
void |
add(DocBuilder builder)
Add an
Op to a DocBuilder. |
static Op |
make(Indent plusIndent)
Make an ordinary
OpenOp. |
String |
toString() |
public static Op make(Indent plusIndent)
OpenOp.plusIndent - the indent for breaks at this levelOpenOppublic void add(DocBuilder builder)
OpOp to a DocBuilder.add in interface Opbuilder - the DocBuilderCopyright © 2015–2017 Google Inc.. All rights reserved.