In the order of priority:
|
Assignment operators |
|
|---|---|
|
Operator |
org.openl.j operator |
|
= |
op.assign |
|
+= |
op.assign.add |
|
-= |
op.assign.subtract |
|
*= |
op.assign.multiply |
|
/= |
op.assign.divide |
|
%= |
op.assign.rem |
|
&= |
op.assign.bitand |
|
|= |
op.assign.bitor |
|
^= |
op.assign.bitxor |
|
Conditional Ternary |
|
|---|---|
|
Operator |
org.openl.j operator |
|
? : |
op.ternary.qmark |
|
Implication |
|
|---|---|
|
Operator |
org.openl.j operator |
|
-> |
op.binary.impl (*) |
|
Boolean OR |
|
|---|---|
|
Operator |
org.openl.j operator |
|
|| or "or" |
op.binary.or |
|
Boolean AND |
|
|---|---|
|
Operator |
org.openl.j operator |
|
&& or "and" |
op.binary.and |
|
Bitwise OR |
|
|---|---|
|
Operator |
org.openl.j operator |
|
| |
op.binary.bitor |
|
Bitwise XOR |
|
|---|---|
|
Operator |
org.openl.j operator |
|
^ |
op.binary.bitxor |
|
Bitwise AND |
|
|---|---|
|
Operator |
org.openl.j operator |
|
& |
op.binary.bitand |
|
Equality |
|
|---|---|
|
Operator |
org.openl.j operator |
|
== |
op.binary.eq |
|
!= |
op.binary.ne |
|
==== |
op.binary.strict_eq (*) |
|
!=== |
op.binary.strict_ne (*) |
|
Relational |
|
|---|---|
|
Operator |
org.openl.j operator |
|
< |
op.binary.lt |
|
> |
op.binary.gt |
|
<= |
op.binary.le |
|
>= |
op.binary.ge |
|
<== |
op.binary.strict_lt (*) |
|
>== |
op.binary.strict_gt (*) |
|
<=== |
op.binary.strict_le (*) |
|
>=== |
op.binary.strict_ge (*) |
|
Bitwise Shift |
|
|---|---|
|
Operator |
org.openl.j operator |
|
<< |
op.binary.lshift |
|
>> |
op.binary.rshift |
|
>>> |
op.binary.rshiftu |
|
Additive |
|
|---|---|
|
Operator |
org.openl.j operator |
|
+ |
op.binary.add |
|
- |
op.binary.subtract |
|
Multiplicative |
|
|---|---|
|
Operator |
org.openl.j operator |
|
* |
op.binary.multiply |
|
/ |
op.binary.divide |
|
% |
op.binary.rem |
|
Power |
|
|---|---|
|
Operator |
org.openl.j operator |
|
** |
op.binary.pow (*) |
|
Unary Operators |
|
|---|---|
|
Operator |
org.openl.j operator |
|
+ |
op.unary.positive |
|
- |
op.unary.negative |
|
++x |
op.prefix.inc |
|
--x |
op.prefix.dec |
|
x++ |
op.suffix.inc |
|
x-- |
op.suffix.dec |
|
! |
op.unary.not |
|
~ |
op.unary.bitnot |
|
(cast) |
type.cast |
|
|x| |
op.unary.abs (*) |
(*) Operators do not exist in Java Standard, only in org.openl.j, but you can use and overload them at will