public final class OpenOp extends Object implements Op
OpenOp
opens a level. It is an Op
in the sequence of Op
s generated by
OpsBuilder
. When the sequence is turned into a Doc
by DocBuilder
, Input.Tok
s delimited by OpenOp
-CloseOp
pairs turn into nested Doc.Level
s.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 levelOpenOp
public void add(DocBuilder builder)
Op
Op
to a DocBuilder
.add
in interface Op
builder
- the DocBuilder
Copyright © 2015–2017 Google Inc.. All rights reserved.