예제 #1
0
 private Property evalMultiply(Numeric op1, Numeric op2)
 {
     if (op1 == null || op2 == null)
     {
         throw new PropertyException("Non numeric operand in multiplication");
     }
     return(new NumericProperty(op1.multiply(op2)));
 }
예제 #2
0
 private Property evalNegate(Numeric op)
 {
     if (op == null)
     {
         throw new PropertyException("Non numeric operand to unary minus");
     }
     return(new NumericProperty(op.multiply(negOne)));
 }
예제 #3
0
 private Property evalMultiply(Numeric op1, Numeric op2)
 {
     if (op1 == null || op2 == null)
     {
         throw new PropertyException("Non numeric operand in multiplication");
     }
     return new NumericProperty(op1.multiply(op2));
 }
예제 #4
0
 private Property evalNegate(Numeric op)
 {
     if (op == null)
     {
         throw new PropertyException("Non numeric operand to unary minus");
     }
     return new NumericProperty(op.multiply(negOne));
 }