internal override Value IsLessThanInt(IntegerValue value)
 {
     return(new Undefined());
 }
 internal override Value IsGreaterThanOrEqualToInt(IntegerValue value)
 {
     return(new Undefined());
 }
 internal virtual Value DividedByInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.Divide, value, this));
 }
 internal virtual Value IsNotEqualToInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.NotEqualTo, value, this));
 }
Beispiel #5
0
 internal override Value PlusInt(IntegerValue value)
 {
     return(new IntegerValue(value.Val + Val));
 }
 internal virtual Value MultipliedByInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.Multiply, value, this));
 }
 internal virtual Value IsGreaterThanInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.GreaterThan, value, this));
 }
 internal override Value DividedByInt(IntegerValue value)
 {
     return(new Undefined());
 }
Beispiel #9
0
 internal override Value IsNotEqualToInt(IntegerValue value)
 {
     return(new BooleanValue(value.Val != this.Val));
 }
Beispiel #10
0
 internal override Value IsLessThanOrEqualToInt(IntegerValue value)
 {
     return(new BooleanValue(value.Val <= this.Val));
 }
Beispiel #11
0
 internal override Value DividedByInt(IntegerValue value)
 {
     return(new IntegerValue((int)Math.Round(value.Val / (decimal)this.Val)));
 }
Beispiel #12
0
 internal override Value MultipliedByInt(IntegerValue value)
 {
     return(new IntegerValue(value.Val * this.Val));
 }
Beispiel #13
0
 internal override Value MinusInt(IntegerValue value)
 {
     return(new IntegerValue(value.Val - this.Val));
 }
 internal override Value MinusInt(IntegerValue value)
 {
     return(new Undefined());
 }
 internal virtual Value PlusInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.Add, value, this));
 }
 internal override Value MultipliedByInt(IntegerValue value)
 {
     return(new Undefined());
 }
 internal virtual Value MinusInt(IntegerValue value)
 {
     throw new InvalidOperationException(CreateMessage(Operation.Substract, value, this));
 }
 internal override Value IsNotEqualToInt(IntegerValue value)
 {
     return(new Undefined());
 }
Beispiel #19
0
 internal override Value IsGreaterThanInt(IntegerValue value)
 {
     return(new BooleanValue(value.Val > this.Val));
 }