/** * Returns the sum of this LongValue and the given LongValue. */ public LongValue add(LongValue other) { return other.add(this); }
/** * Returns the logical <i>and</i> of this LongValue and the given * LongValue. */ public LongValue and(LongValue other) { return other.and(this); }
/** * Returns an IntegerValue with value -1, 0, or 1, if this LongValue is * less than, equal to, or greater than the given ParticularLongValue, * respectively. */ public IntegerValue compare(ParticularLongValue other) { return compare((SpecificLongValue)other); }
stack.push(stack.lpop().add(stack.lpop())); break; stack.push(stack.lpop().subtractFrom(stack.lpop())); break; stack.push(stack.lpop().multiply(stack.lpop())); break; stack.push(stack.lpop().divideOf(stack.lpop())); stack.push(stack.lpop().remainderOf(stack.lpop())); stack.push(stack.lpop().negate()); break; stack.push(stack.lpop().and(stack.lpop())); break; stack.push(stack.lpop().or(stack.lpop())); break; stack.push(stack.lpop().xor(stack.lpop())); break; stack.push(stack.lpop().convertToInteger()); break; stack.push(stack.lpop().convertToFloat());
/** * Returns the quotient of the given LongValue and this LongValue. */ public LongValue divideOf(LongValue other) throws ArithmeticException { return other.divide(this); }
/** * Returns the generalization of this LongValue and the given other * LongValue. */ public LongValue generalize(LongValue other) { return other.generalize(this); }
/** * Returns the quotient of this LongValue and the given LongValue. */ public LongValue divide(LongValue other) throws ArithmeticException { return other.divideOf(this); }
/** * Returns an IntegerValue with value -1, 0, or 1, if this LongValue is * less than, equal to, or greater than the given LongValue, respectively. */ public IntegerValue compare(LongValue other) { return other.compareReverse(this); }
stack.push(stack.lpop().add(stack.lpop())); break; stack.push(stack.lpop().subtractFrom(stack.lpop())); break; stack.push(stack.lpop().multiply(stack.lpop())); break; stack.push(stack.lpop().divideOf(stack.lpop())); stack.push(stack.lpop().remainderOf(stack.lpop())); stack.push(stack.lpop().negate()); break; stack.push(stack.lpop().and(stack.lpop())); break; stack.push(stack.lpop().or(stack.lpop())); break; stack.push(stack.lpop().xor(stack.lpop())); break; stack.push(stack.lpop().convertToInteger()); break; stack.push(stack.lpop().convertToFloat());
public LongValue divideOf(LongValue other) throws ArithmeticException { return other.divide(this); }
/** * Returns the generalization of this LongValue and the given other * ParticularLongValue. */ public LongValue generalize(ParticularLongValue other) { return generalize((SpecificLongValue)other); }
public LongValue divide(LongValue other) throws ArithmeticException { return other.divideOf(this); }
/** * Returns an IntegerValue with value -1, 0, or 1, if this LongValue is * less than, equal to, or greater than the given LongValue, respectively. */ public IntegerValue compare(LongValue other) { return other.compareReverse(this); }
stack.push(stack.lpop().add(stack.lpop())); break; stack.push(stack.lpop().subtractFrom(stack.lpop())); break; stack.push(stack.lpop().multiply(stack.lpop())); break; stack.push(stack.lpop().divideOf(stack.lpop())); stack.push(stack.lpop().remainderOf(stack.lpop())); stack.push(stack.lpop().negate()); break; stack.push(stack.lpop().and(stack.lpop())); break; stack.push(stack.lpop().or(stack.lpop())); break; stack.push(stack.lpop().xor(stack.lpop())); break; stack.push(stack.lpop().convertToInteger()); break; stack.push(stack.lpop().convertToFloat());
public LongValue divideOf(LongValue other) throws ArithmeticException { return other.divide(this); }
/** * Returns an IntegerValue with value -1, 0, or 1, if this LongValue is * less than, equal to, or greater than the given ParticularLongValue, * respectively. */ public IntegerValue compare(ParticularLongValue other) { return compare((SpecificLongValue)other); }
/** * Returns the logical <i>and</i> of this LongValue and the given * ParticularLongValue. */ public LongValue and(ParticularLongValue other) { return and((SpecificLongValue)other); }
/** * Returns the generalization of this LongValue and the given other * LongValue. */ public LongValue generalize(LongValue other) { return other.generalize(this); }
/** * Returns the sum of this LongValue and the given ParticularLongValue. */ public LongValue add(ParticularLongValue other) { return add((SpecificLongValue)other); }
public LongValue divide(LongValue other) throws ArithmeticException { return other.divideOf(this); }