public static enum SimpleCalculator.State extends java.lang.Enum<SimpleCalculator.State>
Enum Constant and Description |
---|
END |
LEFT_PAREN |
NUMBER |
NUMBER1 |
NUMBER2 |
OPERATOR |
RIGHT_PAREN |
START |
Modifier and Type | Method and Description |
---|---|
static SimpleCalculator.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SimpleCalculator.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleCalculator.State START
public static final SimpleCalculator.State NUMBER1
public static final SimpleCalculator.State NUMBER2
public static final SimpleCalculator.State OPERATOR
public static final SimpleCalculator.State NUMBER
public static final SimpleCalculator.State LEFT_PAREN
public static final SimpleCalculator.State RIGHT_PAREN
public static final SimpleCalculator.State END
public static SimpleCalculator.State[] values()
for (SimpleCalculator.State c : SimpleCalculator.State.values()) System.out.println(c);
public static SimpleCalculator.State 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 null