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

Method booleanUnaryOperation

src/bsh/Primitive.java:692–703  ·  view source on GitHub ↗
(Boolean B, int kind)

Source from the content-addressed store, hash-verified

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 {

Callers 2

unaryOperationMethod · 0.95

Calls 1

booleanValueMethod · 0.80

Tested by

no test coverage detected