public static enum State.Kind extends Enum<State.Kind>
A REFERENCE state is handled specially. It is used to call into another state engine much as a normal subroutine call. A REFERENCE state (like a FINAL state) may not have any transitions that leave it. The returnAction method on a REFERENCE state is responsible for setting the state directly.
Modifier and Type | Method and Description |
---|---|
static State.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static State.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State.Kind INITIAL
public static final State.Kind NORMAL
public static final State.Kind REFERENCE
public static final State.Kind FINAL
public static State.Kind[] values()
for (State.Kind c : State.Kind.values()) System.out.println(c);
public static State.Kind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017 Oracle. All rights reserved.