Package com.google.googlejavaformat
Class OpenOp
- java.lang.Object
-
- com.google.googlejavaformat.OpenOp
-
- All Implemented Interfaces:
Op
public final class OpenOp extends java.lang.Object implements Op
AnOpenOpopens a level. It is anOpin the sequence ofOps generated byOpsBuilder. When the sequence is turned into aDocbyDocBuilder,Input.Toks delimited byOpenOp-CloseOppairs turn into nestedDoc.Levels.
-
-
Field Summary
Fields Modifier and Type Field Description private IndentplusIndent
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(DocBuilder builder)Add anOpto aDocBuilder.static Opmake(Indent plusIndent)Make an ordinaryOpenOp.java.lang.StringtoString()
-
-
-
Field Detail
-
plusIndent
private final Indent plusIndent
-
-
Constructor Detail
-
OpenOp
private OpenOp(Indent plusIndent)
-
-
Method Detail
-
make
public static Op make(Indent plusIndent)
Make an ordinaryOpenOp.- Parameters:
plusIndent- the indent for breaks at this level- Returns:
- the
OpenOp
-
add
public void add(DocBuilder builder)
Description copied from interface:OpAdd anOpto aDocBuilder.- Specified by:
addin interfaceOp- Parameters:
builder- theDocBuilder
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-