home *** CD-ROM | disk | FTP | other *** search
- package sun.tools.tree;
-
- import sun.tools.java.Environment;
- import sun.tools.java.Type;
-
- public class BinaryShiftExpression extends BinaryExpression {
- public BinaryShiftExpression(int var1, int var2, Expression var3, Expression var4) {
- super(var1, var2, var3.type, var3, var4);
- }
-
- void selectType(Environment var1, Context var2, int var3) {
- if (super.left.type == Type.tLong) {
- super.type = Type.tLong;
- } else if (super.left.type.inMask(62)) {
- super.type = Type.tInt;
- super.left = ((Node)this).convert(var1, var2, super.type, super.left);
- } else {
- super.type = Type.tError;
- }
-
- if (super.right.type.inMask(62)) {
- super.right = new ConvertExpression(super.where, Type.tInt, super.right);
- } else {
- super.right = ((Node)this).convert(var1, var2, Type.tInt, super.right);
- }
- }
- }
-