(Double D, int kind)
| 764 | } |
| 765 | |
| 766 | static double doubleUnaryOperation(Double D, int kind) |
| 767 | { |
| 768 | double operand = D.doubleValue(); |
| 769 | |
| 770 | switch(kind) |
| 771 | { |
| 772 | case PLUS: |
| 773 | return operand; |
| 774 | case MINUS: |
| 775 | return -operand; |
| 776 | case INCR: |
| 777 | return operand + 1; |
| 778 | case DECR: |
| 779 | return operand - 1; |
| 780 | default: |
| 781 | throw new InterpreterError("bad double unaryOperation"); |
| 782 | } |
| 783 | } |
| 784 | |
| 785 | public int intValue() throws UtilEvalError |
| 786 | { |
no outgoing calls
no test coverage detected