ptolemy.data
Interface BitwiseOperationToken

All Known Implementing Classes:
BooleanToken, ScalarToken

public interface BitwiseOperationToken


Method Summary
 BitwiseOperationToken bitwiseAnd(Token rightArgument)
          Returns a token representing the bitwise AND of this token and the given token.
 BitwiseOperationToken bitwiseNot()
          Returns a token representing the bitwise NOT of this token.
 BitwiseOperationToken bitwiseOr(Token rightArgument)
          Returns a token representing the bitwise OR of this token and the given token.
 BitwiseOperationToken bitwiseXor(Token rightArgument)
          Returns a token representing the bitwise XOR of this token and the given token.
 

Method Detail

bitwiseAnd

public BitwiseOperationToken bitwiseAnd(Token rightArgument)
                                 throws IllegalActionException
Returns a token representing the bitwise AND of this token and the given token.

Returns:
The bitwise AND.
Throws:
IllegalActionException - If the given token is not compatible for this operation, or the operation does not make sense for this type.

bitwiseNot

public BitwiseOperationToken bitwiseNot()
                                 throws IllegalActionException
Returns a token representing the bitwise NOT of this token.

Returns:
The bitwise NOT of this token.
Throws:
IllegalActionException - If the given token is not compatible for this operation, or the operation does not make sense for this type.

bitwiseOr

public BitwiseOperationToken bitwiseOr(Token rightArgument)
                                throws IllegalActionException
Returns a token representing the bitwise OR of this token and the given token.

Returns:
The bitwise OR.
Throws:
IllegalActionException - If the given token is not compatible for this operation, or the operation does not make sense for this type.

bitwiseXor

public BitwiseOperationToken bitwiseXor(Token rightArgument)
                                 throws IllegalActionException
Returns a token representing the bitwise XOR of this token and the given token.

Returns:
The bitwise XOR.
Throws:
IllegalActionException - If the given token is not compatible for this operation, or the operation does not make sense for this type.