(Boolean B, int kind)
| 690 | } |
| 691 | |
| 692 | static boolean booleanUnaryOperation(Boolean B, int kind) |
| 693 | throws UtilEvalError |
| 694 | { |
| 695 | boolean operand = B.booleanValue(); |
| 696 | switch(kind) |
| 697 | { |
| 698 | case BANG: |
| 699 | return !operand; |
| 700 | default: |
| 701 | throw new UtilEvalError("Operator inappropriate for boolean"); |
| 702 | } |
| 703 | } |
| 704 | |
| 705 | static int intUnaryOperation(Integer I, int kind) |
| 706 | { |
no test coverage detected