tip.node
Enum EStm
java.lang.Object
java.lang.Enum<EStm>
tip.node.EStm
- All Implemented Interfaces:
- Serializable, Comparable<EStm>
public enum EStm
- extends Enum<EStm>
Method Summary |
static EStm |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EStm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
BLOCK
public static final EStm BLOCK
ASSIGN_VAR
public static final EStm ASSIGN_VAR
DECL
public static final EStm DECL
WHILE
public static final EStm WHILE
OUTPUT
public static final EStm OUTPUT
IF_THEN_ELSE
public static final EStm IF_THEN_ELSE
ASSIGN_PTR
public static final EStm ASSIGN_PTR
IF_THEN
public static final EStm IF_THEN
RETURN
public static final EStm RETURN
values
public static EStm[] 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 (EStm c : EStm.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EStm valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null