public enum CloseOp extends Enum<CloseOp> implements Op
CloseOp
closes 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
, ranges
delimited by OpenOp
-CloseOp
pairs turn into nested Doc.Level
s.Enum Constant and Description |
---|
CLOSE |
Modifier and Type | Method and Description |
---|---|
void |
add(DocBuilder builder)
Add an
Op to a DocBuilder . |
static Op |
make()
Make a
CloseOp , returning a singleton since they are all the same. |
String |
toString() |
static CloseOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseOp CLOSE
public static CloseOp[] values()
for (CloseOp c : CloseOp.values()) System.out.println(c);
public static CloseOp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Op make()
CloseOp
, returning a singleton since they are all the same.CloseOp
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.