java.lang.Object
com.google.googlejavaformat.OpenOp
- All Implemented Interfaces:
Op
public final class OpenOp extends Object implements Op
An
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.-
Method Summary
Modifier and Type Method Description void
add(DocBuilder builder)
Add anOp
to aDocBuilder
.static Op
make(Indent plusIndent)
Make an ordinaryOpenOp
.String
toString()
-
Method Details
-
make
Make an ordinaryOpenOp
.- Parameters:
plusIndent
- the indent for breaks at this level- Returns:
- the
OpenOp
-
add
Description copied from interface:Op
Add anOp
to aDocBuilder
.- Specified by:
add
in interfaceOp
- Parameters:
builder
- theDocBuilder
-
toString
-