public static enum JBlock.Braces extends Enum<JBlock.Braces>
Enum Constant and Description |
---|
IF_MULTILINE
Braces are only required if the block contains more or less than one statement.
|
OPTIONAL
Braces are optional and won't be rendered unless forced.
|
REQUIRED
Braces should always be used.
|
Modifier and Type | Method and Description |
---|---|
static JBlock.Braces |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JBlock.Braces[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JBlock.Braces OPTIONAL
public static final JBlock.Braces IF_MULTILINE
public static final JBlock.Braces REQUIRED
public static JBlock.Braces[] values()
for (JBlock.Braces c : JBlock.Braces.values()) System.out.println(c);
public static JBlock.Braces 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 nullCopyright © 2016. All rights reserved.