Enum Class ControlFactory.Control
java.lang.Object
java.lang.Enum<ControlFactory.Control>
edu.tufts.hrilab.action.execution.control.ControlFactory.Control
- All Implemented Interfaces:
Serializable
,Comparable<ControlFactory.Control>
,Constable
- Enclosing class:
- ControlFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ControlFactory.Control
fromString
(String string) Case-insensitive version of valueOf.getNext()
Gets what control options can come next (END control comes first).boolean
isStart()
static ControlFactory.Control
Returns the enum constant of this class with the specified name.static ControlFactory.Control[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
-
ASYNC
-
BLOCK
-
CATCH
-
DO
-
ELSE
-
ELSEIF
-
END
-
ENDAND
-
ENDASYNC
-
ENDFOR
-
ENDIF
-
ENDNOT
-
ENDOR
-
ENDTRY
-
ENDWHILE
-
EXIT
-
FINALLY
-
FOR
-
FOREACH
-
IF
-
JOIN
-
NOT
-
OR
-
OTHER
-
RETURN
-
THEN
-
TRUE
-
TRY
-
WHILE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNext
Gets what control options can come next (END control comes first). NOTE: normally enum instance specific fields like this should go in the constructor (e.g., the isStart field), but using other Control enums in a Control enum constructor isn't allowed (i.e., illegal forward reference).- Returns:
- list of controls
-
isStart
public boolean isStart()- Returns:
- true if this control can start a control sequence (i.e. not and end... or something like else, do...)
-
fromString
Case-insensitive version of valueOf. Returning OTHER instead of null.- Parameters:
string
-- Returns:
-