Enum BlockType
- java.lang.Object
-
- java.lang.Enum<BlockType>
-
- org.benf.cfr.reader.bytecode.analysis.parse.utils.BlockType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANONYMOUS
CASE
CATCHBLOCK
DOLOOP
FORLOOP
MONITOR
SIMPLE_IF_ELSE
SIMPLE_IF_TAKEN
SWITCH
TRYBLOCK
UNCONDITIONALDOLOOP
WHILELOOP
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockType(boolean breakable, boolean isloop)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
WHILELOOP
public static final BlockType WHILELOOP
-
DOLOOP
public static final BlockType DOLOOP
-
UNCONDITIONALDOLOOP
public static final BlockType UNCONDITIONALDOLOOP
-
FORLOOP
public static final BlockType FORLOOP
-
TRYBLOCK
public static final BlockType TRYBLOCK
-
SIMPLE_IF_TAKEN
public static final BlockType SIMPLE_IF_TAKEN
-
SIMPLE_IF_ELSE
public static final BlockType SIMPLE_IF_ELSE
-
CATCHBLOCK
public static final BlockType CATCHBLOCK
-
SWITCH
public static final BlockType SWITCH
-
CASE
public static final BlockType CASE
-
ANONYMOUS
public static final BlockType ANONYMOUS
-
MONITOR
public static final BlockType MONITOR
-
-
Method Detail
-
values
public static BlockType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BlockType c : BlockType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isBreakable
public boolean isBreakable()
-
isLoop
public boolean isLoop()
-
-