Class Java.BinaryOperation

  • All Implemented Interfaces:
    Java.ArrayInitializerOrRvalue, Java.ElementValue, Java.Locatable
    Enclosing class:
    Java

    public static final class Java.BinaryOperation
    extends Java.BooleanRvalue
    Representation of all non-operand-modifying binary operations.

    Operations with boolean result:

    ||
    JLS7 15.24 "conditional or operation"
    &&
    JLS7 15.23 "conditional and operation"
    ==
    JLS7 15.21 "equality operation"
    !=
    JLS7 15.22 "non-equality operation"
    < > <= >=
    JLS7 15.20.1 "numerical comparison operations"

    Operations with non-boolean result:

    |
    JLS7 15.22.1 "integer bitwise OR operation" and JLS7 15.22.2 "boolean logical OR operation"
    ^
    JLS7 15.22.1 "integer bitwise XOR operation" and JLS7 15.22.2 "boolean logical XOR operation"
    &
    JLS7 15.22.1 "integer bitwise AND operation" and JLS7 15.22.2 "boolean logical AND operation"
    * / %
    JLS7 15.17 "multiplicative operations"
    + -
    JLS7 15.18 "additive operations"
    << >> >>>
    JLS7 15.19 "shift operations"