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 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.
  • Method Details

    • make

      public static Op make​(Indent plusIndent)
      Make an ordinary OpenOp.
      Parameters:
      plusIndent - the indent for breaks at this level
      Returns:
      the OpenOp
    • add

      public void add​(DocBuilder builder)
      Description copied from interface: Op
      Add an Op to a DocBuilder.
      Specified by:
      add in interface Op
      Parameters:
      builder - the DocBuilder
    • toString

      public String toString()
      Overrides:
      toString in class Object