Package kz.greetgo.script.model.block
Enum BlockType
- java.lang.Object
-
- java.lang.Enum<BlockType>
-
- kz.greetgo.script.model.block.BlockType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BlockBlockAssignBlockExitBlockFixEmptyBlockFixEntryPointBlockFixMethodBlockForeachBlockFuncBlockIfBlockNewVarBlockObjectBlockReturnBlockSetFieldBlockSetVarBlockSwitchExit
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlockTypevalueOf(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
-
Block
public static final BlockType Block
-
BlockFixEmpty
public static final BlockType BlockFixEmpty
-
BlockFixMethod
public static final BlockType BlockFixMethod
-
BlockFixEntryPoint
public static final BlockType BlockFixEntryPoint
-
BlockIf
public static final BlockType BlockIf
-
BlockNewVar
public static final BlockType BlockNewVar
-
BlockAssign
public static final BlockType BlockAssign
-
BlockSetVar
public static final BlockType BlockSetVar
-
BlockSetField
public static final BlockType BlockSetField
-
BlockSwitchExit
public static final BlockType BlockSwitchExit
-
BlockExit
public static final BlockType BlockExit
-
BlockReturn
public static final BlockType BlockReturn
-
BlockForeach
public static final BlockType BlockForeach
-
BlockFunc
public static final BlockType BlockFunc
-
BlockObject
public static final BlockType BlockObject
-
-
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
-
-