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)));
 }
 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));
 }