Beispiel #1
0
 private Constant orBitwise_compute(Constant c1, Constant c2) {
   return Constant.create(c1.intValue() | c2.intValue());
 }
Beispiel #2
0
 private Constant questionColon_compute(Constant cond, Constant c1, Constant c2) {
   return Constant.create(cond.booleanValue() ? c1.intValue() : c2.intValue());
 }
Beispiel #3
0
 private Constant sub_compute(Constant c1, Constant c2) {
   return Constant.create(c1.intValue() - c2.intValue());
 }
Beispiel #4
0
 private Constant urshift_compute(Constant c1, Constant c2) {
   return Constant.create(c1.intValue() >>> c2.intValue());
 }
Beispiel #5
0
 private Constant div_compute(Constant c1, Constant c2) {
   return Constant.create(c1.intValue() / c2.intValue());
 }
Beispiel #6
0
 private Constant add_compute(Constant c1, Constant c2) {
   return Constant.create(c1.intValue() + c2.intValue());
 }
Beispiel #7
0
 private Constant bitNot_compute(Constant c) {
   return Constant.create(~c.intValue());
 }
Beispiel #8
0
 private Constant mul_compute(Constant c1, Constant c2) {
   return Constant.create(c1.intValue() * c2.intValue());
 }
Beispiel #9
0
 private Constant minus_compute(Constant c) {
   return Constant.create(-c.intValue());
 }
Beispiel #10
0
 private Constant cast_compute(Constant c) {
   return Constant.create(c.intValue());
 }
Beispiel #11
0
 private Constant constant_compute() {
   return Constant.create(!binaryNumericPromotedType().eqIsTrue(left(), right()));
 }
Beispiel #12
0
 /** @apilevel internal */
 private Constant mod_compute(Constant c1, Constant c2) {
   return Constant.create(c1.floatValue() % c2.floatValue());
 }
 private Constant constant_compute() {
   return Constant.create(getLITERAL());
 }