Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package com.singularsys.jep.misc.bitwise

A selection of bitwise operators.

See:
Description

Class Summary
BitAnd | Bitwise And, like the java a & b operator.
BitComp | Unary bitwise complement, like the java ~a operator.
BitOr | Bitwise Or, like the java a | b operator.
BitwiseOperatorTable |
BitXor | Bitwise Xor, like the java a ^ b operator.
LShift | Bitwise Left shift, like the java a << b operator.
RShift | Bitwise right shift with sign extension, like the java a >> b operator.
URShift | Bitwise right shift with zero extension, like the java a <<< b operator.

Enum Summary
BitwiseOperatorTable.BitwiseOperators |

## Package com.singularsys.jep.misc.bitwise Description

A selection of bitwise operators.

- And: a & b
- Or: a | b
- Complement: ~a
- Xor: a ^ b
- Left shift: a >> b
- Right shift: a << b
- Right shift with zero extension: a <<< b

The BitwiseOperatorTable can be used as a drop in replacement for the StandardOperatorTable.

    jep.setComponent(new BitwiseOperatorTable("**","^"));

Note the standard symbol used for power ^ conflicts with java's symbol used for xor, the constructor for the BitwiseOperatorTable takes two strings specifying the symbols used for power and xor respectively.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

Copyright © 2008 Singular Systems http://www.singularsys.com/jep