public enum BlockOption extends Enum<BlockOption>
EmptyBlockCheck
Enum Constant and Description |
---|
STATEMENT
Represents the policy that there is a statement in the block.
|
TEXT
Represents the policy that there is some text in the block.
|
Modifier and Type | Method and Description |
---|---|
static BlockOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockOption TEXT
catch (Exception ex) { // This is a bad coding practice }
public static final BlockOption STATEMENT
finally { lock.release(); }
public static BlockOption[] values()
for (BlockOption c : BlockOption.values()) System.out.println(c);
public static BlockOption 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 © 2001–2018. All rights reserved.