MCPcopy Create free account
hub / github.com/beanshell/beanshell / doubleUnaryOperation

Method doubleUnaryOperation

src/bsh/Primitive.java:766–783  ·  view source on GitHub ↗
(Double D, int kind)

Source from the content-addressed store, hash-verified

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 {

Callers 2

unaryOperationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected