1 21 package proguard.evaluation.value; 22 23 import proguard.classfile.ClassConstants; 24 25 30 public class LongValue extends Category2Value 31 { 32 35 public long value() 36 { 37 return 0L; 38 } 39 40 41 43 47 public LongValue generalize(LongValue other) 48 { 49 return this; 50 } 51 52 53 56 public LongValue add(LongValue other) 57 { 58 return this; 59 } 60 61 64 public LongValue subtract(LongValue other) 65 { 66 return this; 67 } 68 69 72 public LongValue subtractFrom(LongValue other) 73 { 74 return this; 75 } 76 77 80 public LongValue multiply(LongValue other) 81 { 82 return this; 83 } 84 85 88 public LongValue divide(LongValue other) 89 { 90 return this; 91 } 92 93 96 public LongValue divideOf(LongValue other) 97 { 98 return this; 99 } 100 101 104 public LongValue remainder(LongValue other) 105 { 106 return this; 107 } 108 109 112 public LongValue remainderOf(LongValue other) 113 { 114 return this; 115 } 116 117 120 public LongValue shiftLeft(IntegerValue other) 121 { 122 return this; 123 } 124 125 128 public LongValue shiftRight(IntegerValue other) 129 { 130 return this; 131 } 132 133 137 public LongValue unsignedShiftRight(IntegerValue other) 138 { 139 return this; 140 } 141 142 146 public LongValue and(LongValue other) 147 { 148 return this; 149 } 150 151 155 public LongValue or(LongValue other) 156 { 157 return this; 158 } 159 160 164 public LongValue xor(LongValue other) 165 { 166 return this; 167 } 168 169 173 public IntegerValue compare(LongValue other, ValueFactory valueFactory) 174 { 175 return valueFactory.createIntegerValue(); 176 } 177 178 179 181 185 public final IntegerValue compareReverse(LongValue other, ValueFactory valueFactory) 186 { 187 return compare(other, valueFactory).negate(); 188 } 189 190 191 193 196 public LongValue negate() 197 { 198 return this; 199 } 200 201 204 public IntegerValue convertToInteger(ValueFactory valueFactory) 205 { 206 return valueFactory.createIntegerValue(); 207 } 208 209 212 public FloatValue convertToFloat(ValueFactory valueFactory) 213 { 214 return valueFactory.createFloatValue(); 215 } 216 217 220 public DoubleValue convertToDouble(ValueFactory valueFactory) 221 { 222 return valueFactory.createDoubleValue(); 223 } 224 225 226 228 232 public LongValue generalize(SpecificLongValue other) 233 { 234 return this; 235 } 236 237 238 241 public LongValue add(SpecificLongValue other) 242 { 243 return this; 244 } 245 246 249 public LongValue subtract(SpecificLongValue other) 250 { 251 return this; 252 } 253 254 257 public LongValue subtractFrom(SpecificLongValue other) 258 { 259 return this; 260 } 261 262 265 public LongValue multiply(SpecificLongValue other) 266 { 267 return this; 268 } 269 270 273 public LongValue divide(SpecificLongValue other) 274 { 275 return this; 276 } 277 278 281 public LongValue divideOf(SpecificLongValue other) 282 { 283 return this; 284 } 285 286 290 public LongValue remainder(SpecificLongValue other) 291 { 292 return this; 293 } 294 295 299 public LongValue remainderOf(SpecificLongValue other) 300 { 301 return this; 302 } 303 304 307 public LongValue shiftLeft(SpecificIntegerValue other) 308 { 309 return this; 310 } 311 312 315 public LongValue shiftRight(SpecificIntegerValue other) 316 { 317 return this; 318 } 319 320 324 public LongValue unsignedShiftRight(SpecificIntegerValue other) 325 { 326 return this; 327 } 328 329 333 public LongValue and(SpecificLongValue other) 334 { 335 return this; 336 } 337 338 342 public LongValue or(SpecificLongValue other) 343 { 344 return this; 345 } 346 347 351 public LongValue xor(SpecificLongValue other) 352 { 353 return this; 354 } 355 356 361 public IntegerValue compare(SpecificLongValue other, ValueFactory valueFactory) 362 { 363 return valueFactory.createIntegerValue(); 364 } 365 366 367 369 374 public final IntegerValue compareReverse(SpecificLongValue other, ValueFactory valueFactory) 375 { 376 return compare(other, valueFactory).negate(); 377 } 378 379 380 382 public final LongValue longValue() 383 { 384 return this; 385 } 386 387 public final Value generalize(Value other) 388 { 389 return this.generalize(other.longValue()); 390 } 391 392 public final int computationalType() 393 { 394 return TYPE_LONG; 395 } 396 397 public final String internalType() 398 { 399 return "" + ClassConstants.INTERNAL_TYPE_LONG; 400 } 401 402 403 405 public boolean equals(Object object) 406 { 407 return object != null && 408 this.getClass() == object.getClass(); 409 } 410 411 412 public int hashCode() 413 { 414 return this.getClass().hashCode(); 415 } 416 417 418 public String toString() 419 { 420 return "l"; 421 } 422 } 423 | Popular Tags |