Module dev.civl.abc
Enum Class ExpressionNode.ExpressionKind
java.lang.Object
java.lang.Enum<ExpressionNode.ExpressionKind>
dev.civl.abc.ast.node.IF.expression.ExpressionNode.ExpressionKind
- All Implemented Interfaces:
Serializable,Comparable<ExpressionNode.ExpressionKind>,Constable
- Enclosing interface:
ExpressionNode
An enumerated type used to categorize the different kinds of expression
nodes. Every expression node belongs to exactly one of these categories.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn_Alignofexpression; can be cast toAlignOfNode.An array lambda expression.An arrow (e->f) expression; can be cast toArrowNode.A cast expression, which has the form(typeName)expr; can be cast toCastNode.A compound literal node; can be cast toCompoundLiteralNode.A constant node; can be cast toConstantNode.A CIVL-C derivative expression; can be cast toDerivativeExpressionNode.A C dot expression, which has the forme.f; can be cast toDotNode.An ACSL extended quantification expression (\sum, \min, \max, \product, \numof); can be cast toExtendedQuantifiedExpressionNode.A function call; can be cast toFunctionCallNode.Generic selection expression; can be cast toGenericSelectionNode.An identifier used as an expression (e.g., a variable name or function name).A lambda expression.An ACSL nothing expression (\nothing); can be cast toNothingNode.An$object_ofor$region_ofexpression, which is uded in contract.An operator expression: this includes a large set of expressions formed by using an operator represented by some C symbol, such as=(assignment),+(plus), and so on.A CIVL-C expression formed using a quantifier, such as the universal quantifier$forallor the existential quantifier$exists.A CIVL-C "regular range expression", which has the formlo ..A CIVL-C remote reference expression, which refers to a variable in a different process.The CIVL-C$resultbuilt-in variable, which refers to the result returned by a function.A CIVL-C$scopeof(...)expression; can be cast toScopeOfNode.An expression built from the Csizeofoperator; can be cast toSizeofNode.A CIVL-C$spawnexpression; can be cast toSpawnNode.A GNU C statement expression; can be cast toStatementExpressionNodeAn$update($collator) f()expression.An ACSL-CIVL-C wildcard expression (...); can be cast toWildcardNode. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ExpressionNode.ExpressionKind[]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
-
ALIGNOF
An_Alignofexpression; can be cast toAlignOfNode. -
ARROW
An arrow (e->f) expression; can be cast toArrowNode. -
CAST
A cast expression, which has the form(typeName)expr; can be cast toCastNode. -
COMPOUND_LITERAL
A compound literal node; can be cast toCompoundLiteralNode. -
CONSTANT
A constant node; can be cast toConstantNode. Note there are many subtypes. -
DERIVATIVE_EXPRESSION
A CIVL-C derivative expression; can be cast toDerivativeExpressionNode. -
DOT
A C dot expression, which has the forme.f; can be cast toDotNode. -
FUNCTION_CALL
A function call; can be cast toFunctionCallNode. -
GENERIC_SELECTION
Generic selection expression; can be cast toGenericSelectionNode. -
IDENTIFIER_EXPRESSION
An identifier used as an expression (e.g., a variable name or function name). Can be cast toIdentifierExpressionNode. -
ARRAY_LAMBDA
An array lambda expression. Can be cast toArrayLambdaNode. -
LAMBDA
A lambda expression. Can be cast toLambdaNode. -
OBJECT_OR_REGION_OF
An$object_ofor$region_ofexpression, which is uded in contract. Can be cast to.invalid reference
ObjectOrRegionNode -
OPERATOR
An operator expression: this includes a large set of expressions formed by using an operator represented by some C symbol, such as=(assignment),+(plus), and so on. It does not include any operators that form left-hand-side (lhs) expressions. Can be cast toOperatorNode. -
QUANTIFIED_EXPRESSION
A CIVL-C expression formed using a quantifier, such as the universal quantifier$forallor the existential quantifier$exists. Can be cast toQuantifiedExpressionNode. -
REGULAR_RANGE
A CIVL-C "regular range expression", which has the formlo .. hiorlo .. hi # step; can be cast toRegularRangeNode. -
REMOTE_REFERENCE
A CIVL-C remote reference expression, which refers to a variable in a different process. Can be cast to.invalid reference
RemoteExpressionNode -
RESULT
The CIVL-C$resultbuilt-in variable, which refers to the result returned by a function. Can be cast toResultNode. -
SCOPEOF
A CIVL-C$scopeof(...)expression; can be cast toScopeOfNode. -
SIZEOF
An expression built from the Csizeofoperator; can be cast toSizeofNode. -
SPAWN
A CIVL-C$spawnexpression; can be cast toSpawnNode. -
STATEMENT_EXPRESSION
A GNU C statement expression; can be cast toStatementExpressionNode -
UPDATE
An$update($collator) f()expression. It may be cast toUpdateNode. -
WILDCARD
An ACSL-CIVL-C wildcard expression (...); can be cast toWildcardNode. -
NOTHING
An ACSL nothing expression (\nothing); can be cast toNothingNode. -
EXTENDED_QUANTIFIED
An ACSL extended quantification expression (\sum, \min, \max, \product, \numof); can be cast toExtendedQuantifiedExpressionNode.
-
-
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
-