Module dev.civl.abc
Enum Class StatementNode.StatementKind
java.lang.Object
java.lang.Enum<StatementNode.StatementKind>
dev.civl.abc.ast.node.IF.statement.StatementNode.StatementKind
- All Implemented Interfaces:
Serializable,Comparable<StatementNode.StatementKind>,Constable
- Enclosing interface:
StatementNode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA CIVL-C$atomicstatement.A CIVL-C$choosestatement.A CIVL-C$foror$parforstatement.A compound statement, which is wrapped by a pair of{}.An expression statement.Anif-else(whereelsepart is optional).A jump statement, which could be one ofbreak,continue,go toandreturn.A labeled statement.A loop statement, which could be afor,whileordo-whileloop.A null statement.A statement which has OpenMP pragmas.A statement node which has unknown pragmas.A CIVL-C$runstatement.Aswitchstatement.A CIVL-C$updatestatement.A CIVL-C guarded statement ($when). -
Method Summary
Modifier and TypeMethodDescriptionstatic StatementNode.StatementKindReturns the enum constant of this class with the specified name.static StatementNode.StatementKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ATOMIC
A CIVL-C$atomicstatement. Can be cast toAtomicNode -
CHOOSE
A CIVL-C$choosestatement. Can be cast toChooseStatementNode -
CIVL_FOR
-
COMPOUND
A compound statement, which is wrapped by a pair of{}. Can be cast toCompoundStatementNode -
EXPRESSION
An expression statement. Can be cast toExpressionStatementNode -
IF
-
JUMP
-
LABELED
A labeled statement. Can be cast toLabeledStatementNode -
LOOP
-
NULL
A null statement. Can be cast toNullStatementNode -
OMP
A statement which has OpenMP pragmas. Can be cast toOmpNode -
PRAGMA
A statement node which has unknown pragmas. Can be cast toPragmaNode -
RUN
A CIVL-C$runstatement. Can be cast toRunNode. -
SWITCH
Aswitchstatement. Can be cast toSwitchNode -
UPDATE
A CIVL-C$updatestatement. Can be cast toUpdateNode -
WHEN
A CIVL-C guarded statement ($when). Can be cast toinvalid reference
WhenNOde
-
-
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
-