- All Implemented Interfaces:
Serializable,Comparable<OperatorNode.Operator>,Constable
- Enclosing interface:
OperatorNode
An enumerated type for all the different operators that can occur in an
OperatorNode. Some operators are not included here because they
have their own class. In particular, any operator that results in a
left-hand-side expression has its own class.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe unary address-of operatorinvalid input: '&', as ininvalid input: '&e', which returns a pointer to the object specified by its argumente.The CIVL-C "APPLY" operator which applies a single argument to a lambda expressionThe standard binary assignment operator=, as inlhs=rhs.The CIVL-C "big-O" operator$O, as in$O(h*h), which is used to specify the asymptotic complexity of an expression as a parameter approaches zero.The bitwise and binary operatorinvalid input: '&', as ineinvalid input: '&f', which performs the bit-wise and operation on the corresponding bits of the two integer values.The bit-wise and assignment operatorinvalid input: '&'=, as inlhsinvalid input: '&'=rhs, which performs the bit-wise and operation on the two arguments and stores the result in thelhs.The bit-wise complement operator~, as in~e, which negates each bit in an integer value.The bit-wise equivalent operatorinvalid input: '<'-->of ACSL extension, as ina invalid input: '<'--> b.The bit-wise implies operator-->of ACSL extension, as ina --> b.The bit-wise inclusive or operator|, as ine|f, which performs the logical or operation on the corresponding bits of two integer values.The bit-wise inclusive or assignment operator|=, as inlhs|=rhs, which performs bit-wise or on the two arguments and stores the result in thelhs.The bit-wise exclusive or operator^, as ine^f, which performs the exclusive-or operation on the respective bits of two integer values.The bit-wise exclusive or assignment operator^=, which performs the bit-wise exclusive or operation on the two arguments and stores the result in the left-hand-side argument.The comma operator,, as ine,fwhich evaluateseand thenf, and returns the result of evaluatingf.The ternary if-then-else operator?, as ine1 ? e2 : e3.The pointer dereference unary operator*, as in*e, which returns the value stored in the memory location pointed to bye.The numeric division operator/, as ine/f, used for integer or floating-point division.The numeric division assignment operator/=, as inlhs/=rhs, which evaluateslhs/rhsand stores the result inlhs.The equality operator==, as ine==f, which returns the integer 1 if the two arguments are equal, else returns the integer 0.The greater-than relational operator, as ine>f, which returns the integer 1 ifeis greater thanf, else returns 0.The greater-than-or-equal-to relational operator, as ine>=f, which returns the integer 1 ifeis greater than or equal tof, else returns 0.The CIVL-C "remote" operator#, as inexpr0 # expr.The CIVL-C logical implication operator=>, as ine=>fwhich is equivalent to(!e)||f.The logical and operatorinvalid input: '&'invalid input: '&', as ineinvalid input: '&'invalid input: '&f', which returns the integer 1 ifeandfare both true (not 0), else returns 1.The logical equivalent operatorinvalid input: '<'==>of ACSL extension, as ineinvalid input: '<'==>f, which returns the integer 1 ifeandfare logically equivalent.The logical or operator||, as ine||f, which returns the integer 1 ifeorfis true (not 0), else returns 1.The less-than relational operator, as ine<f, which returns the integer 1 ifeis less thanf, else returns 0.The less-than-or-equal-to relational operator, as ine invalid input: '<'= f, which returns the integer 1 ifeis less than or equal tof, else returns 0.The logical xor operator^^of ACSL extension, as ine^^f, which returns the integer 1 ifeandfare not equivalent.The binary subtraction operator-, as ine-f.The subtraction assignment operator-=, as ine-=f, which performs subtractione-fand stores the result ine.The integer modulus operator%, as ine%f.The integer modulus assignment operator%=, which stores the result ofe%fine.The not-equals operator!=, as ine!=f, which returns the integer 1 if the two arguments are not equal, else returns the integer 0.The logical not operator!, as in!ewhich returns the integer 1 ifeis zero, else returns 0.The ACSL\oldoperator.The binary addition operator+, as ine+f.The addition assignment operator+=as inlhs+=rhs.The post-decrement operator--, as ine--, which subtracts one from e, storing the result in e, and returns the original value of e.The post-increment operator++, as ine++, which adds one to e, storing the result in e, and returns the original value of e.The pre-decrement operator--, as in--e, which subtracts one from e, storing the result in e, and returns the decremented result.The pre-increment operator++, as in++e, which adds one to e, storing the result in e, and returns the incremented result.The shift-left operatorinvalid input: '<'invalid input: '<', as ine invalid input: '<'invalid input: '<' f, which returns the integer obtained by shifting the bits comprising integerefunits to the left.The shift left assignment operatorinvalid input: '<'invalid input: '<'=, as ine invalid input: '<'invalid input: '<'= f, which stores inethe result ofe invalid input: '<'invalid input: '<' f.The shift-right operator>>, as ine >> f, which returns the integer obtained by shifting the bits comprising integerefunits to the right.The shift right assignment operator>>=, as ine >>= f, which stores inethe result ofe >> f.The array subscript operator[], as ina[i], which returns the element in positioniof arraya.The multiplication operator*, as ine*f.The multiplication assignment operator*=, as ine*=f, which stores inethe result ofe*f.The unary minus operator-, as in-e, which return the numeric negation of the numbere.The unary plus operator+, as in+e, which returnse.ACSL Valid operator -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorNode.OperatorReturns the enum constant of this class with the specified name.static OperatorNode.Operator[]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
-
ADDRESSOF
The unary address-of operatorinvalid input: '&', as ininvalid input: '&e', which returns a pointer to the object specified by its argumente. -
APPLY
The CIVL-C "APPLY" operator which applies a single argument to a lambda expression -
ASSIGN
The standard binary assignment operator=, as inlhs=rhs. -
BIG_O
The CIVL-C "big-O" operator$O, as in$O(h*h), which is used to specify the asymptotic complexity of an expression as a parameter approaches zero. -
BITAND
The bitwise and binary operatorinvalid input: '&', as ineinvalid input: '&f', which performs the bit-wise and operation on the corresponding bits of the two integer values. -
BITANDEQ
The bit-wise and assignment operatorinvalid input: '&'=, as inlhsinvalid input: '&'=rhs, which performs the bit-wise and operation on the two arguments and stores the result in thelhs. -
BITCOMPLEMENT
The bit-wise complement operator~, as in~e, which negates each bit in an integer value. -
BITEQUIV
The bit-wise equivalent operatorinvalid input: '<'-->of ACSL extension, as ina invalid input: '<'--> b. -
BITIMPLIES
The bit-wise implies operator-->of ACSL extension, as ina --> b. -
BITOR
The bit-wise inclusive or operator|, as ine|f, which performs the logical or operation on the corresponding bits of two integer values. -
BITOREQ
The bit-wise inclusive or assignment operator|=, as inlhs|=rhs, which performs bit-wise or on the two arguments and stores the result in thelhs. -
BITXOR
The bit-wise exclusive or operator^, as ine^f, which performs the exclusive-or operation on the respective bits of two integer values. -
BITXOREQ
The bit-wise exclusive or assignment operator^=, which performs the bit-wise exclusive or operation on the two arguments and stores the result in the left-hand-side argument. -
COMMA
The comma operator,, as ine,fwhich evaluateseand thenf, and returns the result of evaluatingf. Useful only ifehas side-effects. -
CONDITIONAL
The ternary if-then-else operator?, as ine1 ? e2 : e3. Evaluatese1and converts to boolean; if result istrue, evaluates and returnse2, else evaluates and returnse2. -
DEREFERENCE
The pointer dereference unary operator*, as in*e, which returns the value stored in the memory location pointed to bye. -
DIV
The numeric division operator/, as ine/f, used for integer or floating-point division. -
DIVEQ
The numeric division assignment operator/=, as inlhs/=rhs, which evaluateslhs/rhsand stores the result inlhs. -
EQUALS
The equality operator==, as ine==f, which returns the integer 1 if the two arguments are equal, else returns the integer 0. The arguments must have scalar type. -
GT
The greater-than relational operator, as ine>f, which returns the integer 1 ifeis greater thanf, else returns 0. -
GTE
The greater-than-or-equal-to relational operator, as ine>=f, which returns the integer 1 ifeis greater than or equal tof, else returns 0. -
HASH
The CIVL-C "remote" operator#, as inexpr0 # expr. -
IMPLIES
The CIVL-C logical implication operator=>, as ine=>fwhich is equivalent to(!e)||f. -
LAND
The logical and operatorinvalid input: '&'invalid input: '&', as ineinvalid input: '&'invalid input: '&f', which returns the integer 1 ifeandfare both true (not 0), else returns 1. This is a short-circuit operator, so ifeis false,fis not evaluated. -
LEQ
The logical equivalent operatorinvalid input: '<'==>of ACSL extension, as ineinvalid input: '<'==>f, which returns the integer 1 ifeandfare logically equivalent. -
LOR
The logical or operator||, as ine||f, which returns the integer 1 ifeorfis true (not 0), else returns 1. This is a short-circuit operator, so ifeis true,fis not evaluated. -
LXOR
The logical xor operator^^of ACSL extension, as ine^^f, which returns the integer 1 ifeandfare not equivalent. -
LT
The less-than relational operator, as ine<f, which returns the integer 1 ifeis less thanf, else returns 0. -
LTE
The less-than-or-equal-to relational operator, as ine invalid input: '<'= f, which returns the integer 1 ifeis less than or equal tof, else returns 0. -
MINUS
The binary subtraction operator-, as ine-f. If both operands are numeric, returns the numeric difference. Also used in the case whereehas pointer type andfis an integer (in which case the result is a pointer of the same type ase), and in the case whereeandfare both pointers of the same type, in which case the result is an integer. -
MINUSEQ
The subtraction assignment operator-=, as ine-=f, which performs subtractione-fand stores the result ine. -
MOD
The integer modulus operator%, as ine%f. -
MODEQ
The integer modulus assignment operator%=, which stores the result ofe%fine. -
NEQ
The not-equals operator!=, as ine!=f, which returns the integer 1 if the two arguments are not equal, else returns the integer 0. The arguments must have scalar type. -
NOT
The logical not operator!, as in!ewhich returns the integer 1 ifeis zero, else returns 0. -
OLD
The ACSL\oldoperator. -
PLUS
The binary addition operator+, as ine+f. If both arguments are numeric, the result is the numeric sum; if one argument is a pointer and the other an integer, the result is a pointer of the same type as the pointer operand. -
PLUSEQ
The addition assignment operator+=as inlhs+=rhs. Stores the result oflhs+rhsinlhs. -
POSTDECREMENT
The post-decrement operator--, as ine--, which subtracts one from e, storing the result in e, and returns the original value of e. -
POSTINCREMENT
The post-increment operator++, as ine++, which adds one to e, storing the result in e, and returns the original value of e. -
PREDECREMENT
The pre-decrement operator--, as in--e, which subtracts one from e, storing the result in e, and returns the decremented result. -
PREINCREMENT
The pre-increment operator++, as in++e, which adds one to e, storing the result in e, and returns the incremented result. -
SHIFTLEFT
The shift-left operatorinvalid input: '<'invalid input: '<', as ine invalid input: '<'invalid input: '<' f, which returns the integer obtained by shifting the bits comprising integerefunits to the left. -
SHIFTLEFTEQ
The shift left assignment operatorinvalid input: '<'invalid input: '<'=, as ine invalid input: '<'invalid input: '<'= f, which stores inethe result ofe invalid input: '<'invalid input: '<' f. -
SHIFTRIGHT
The shift-right operator>>, as ine >> f, which returns the integer obtained by shifting the bits comprising integerefunits to the right. -
SHIFTRIGHTEQ
The shift right assignment operator>>=, as ine >>= f, which stores inethe result ofe >> f. -
SUBSCRIPT
The array subscript operator[], as ina[i], which returns the element in positioniof arraya. -
TIMES
The multiplication operator*, as ine*f. -
TIMESEQ
The multiplication assignment operator*=, as ine*=f, which stores inethe result ofe*f. -
UNARYMINUS
The unary minus operator-, as in-e, which return the numeric negation of the numbere. -
UNARYPLUS
The unary plus operator+, as in+e, which returnse. -
VALID
ACSL Valid operator
-
-
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
-