Text not verified for kermeta 2 | |
---|---|
Priority |
Operator |
Operand types |
Semantic |
---|---|---|---|
1 |
|
Numeric String |
Add two numeric values Concatenate two strings |
1 |
|
Numeric |
Subtract two numerous values |
2 |
|
Numeric |
Multiply two numeric values |
2 |
|
Numeric |
Divide the first operand by the second |
Notice that most of these arithmetic operators are only defined for numeric primitive types like Integer. Except the + operator which is a concatenation operator for String, they are not applicable on String, Boolean nor collections
Priority |
Operators |
Operand Types |
Semantics |
---|---|---|---|
3 |
|
All |
True, if op1 value's is the same that op2 value's |
3 |
|
All |
True if op1 value's is different of op2 value's |
3 |
|
Numeric |
True if op1value's is strictly smaller than op2 value's |
3 |
|
Numeric |
True if op1 value's is smaller or equals than op2 value's |
3 |
|
Numeric |
True if op1 value's is strictly greater than op2 value's |
3 |
|
Numeric |
True if op1 value's is greater or equals than op2 value's |
Priority |
Operators |
Operands Types |
Semantics |
---|---|---|---|
4 |
|
Boolean |
True if op1 and op2 are evaluated to true |
4 |
|
Boolean |
True if one of the operators is evaluated to true |
4 |
|
Boolean |
True if op is false. |
Note | |
---|---|
The
See Section 2.18, “ Objects comparison ” for more details about object comparison. |