Enum Constant and Description |
---|
ANONYMOUS |
CASE |
CATCHBLOCK |
DOLOOP |
FORLOOP |
MONITOR |
SIMPLE_IF_ELSE |
SIMPLE_IF_TAKEN |
SWITCH |
TRYBLOCK |
UNCONDITIONALDOLOOP |
WHILELOOP |
Modifier and Type | Field and Description |
---|---|
private boolean |
breakable |
private boolean |
isloop |
Modifier and Type | Method and Description |
---|---|
boolean |
isBreakable() |
boolean |
isLoop() |
static BlockType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockType WHILELOOP
public static final BlockType DOLOOP
public static final BlockType UNCONDITIONALDOLOOP
public static final BlockType FORLOOP
public static final BlockType TRYBLOCK
public static final BlockType SIMPLE_IF_TAKEN
public static final BlockType SIMPLE_IF_ELSE
public static final BlockType CATCHBLOCK
public static final BlockType SWITCH
public static final BlockType CASE
public static final BlockType ANONYMOUS
public static final BlockType MONITOR
public static BlockType[] values()
for (BlockType c : BlockType.values()) System.out.println(c);
public static BlockType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isBreakable()
public boolean isLoop()