Home | History | Annotate | Download | only in value

Lines Matching refs:value

21 package proguard.evaluation.value;
24 * This DoubleValue represents a particular double value.
30 private final double value;
34 * Creates a new particular double value.
36 public ParticularDoubleValue(double value)
38 this.value = value;
44 public double value()
46 return value;
54 return new ParticularDoubleValue(-value);
59 return new ParticularIntegerValue((int)value);
64 return new ParticularLongValue((long)value);
69 return new ParticularFloatValue((float)value);
83 //return value == 0.0 ? other : other.add(this);
90 //return value == 0.0 ? other.negate() : other.subtractFrom(this);
97 //return value == 0.0 ? other : other.subtract(this);
138 return Double.doubleToRawLongBits(this.value) ==
139 Double.doubleToRawLongBits(other.value) ?
145 return new ParticularDoubleValue(this.value + other.value);
150 return new ParticularDoubleValue(this.value - other.value);
155 return new ParticularDoubleValue(other.value - this.value);
160 return new ParticularDoubleValue(this.value * other.value);
165 return new ParticularDoubleValue(this.value / other.value);
170 return new ParticularDoubleValue(other.value / this.value);
175 return new ParticularDoubleValue(this.value % other.value);
180 return new ParticularDoubleValue(other.value % this.value);
185 return this.value < other.value ? ParticularValueFactory.INTEGER_VALUE_M1 :
186 this.value == other.value ? ParticularValueFactory.INTEGER_VALUE_0 :
191 // Implementations for Value.
205 Double.doubleToLongBits(this.value) ==
206 Double.doubleToLongBits(((ParticularDoubleValue)object).value);
213 (int)Double.doubleToLongBits(value);
219 return value+"d";