home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VPage / Java.bin / CLASSES.ZIP / sun / tools / tree / BinaryBitExpression.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-07-08  |  1.3 KB  |  31 lines

  1. package sun.tools.tree;
  2.  
  3. import sun.tools.asm.Assembler;
  4. import sun.tools.java.Environment;
  5. import sun.tools.java.Type;
  6.  
  7. public abstract class BinaryBitExpression extends BinaryExpression {
  8.    public BinaryBitExpression(int var1, int var2, Expression var3, Expression var4) {
  9.       super(var1, var2, var3.type, var3, var4);
  10.    }
  11.  
  12.    void selectType(Environment var1, Context var2, int var3) {
  13.       if ((var3 & 1) != 0) {
  14.          super.type = Type.tBoolean;
  15.       } else if ((var3 & 32) != 0) {
  16.          super.type = Type.tLong;
  17.       } else {
  18.          super.type = Type.tInt;
  19.       }
  20.  
  21.       super.left = ((Node)this).convert(var1, var2, super.type, super.left);
  22.       super.right = ((Node)this).convert(var1, var2, super.type, super.right);
  23.    }
  24.  
  25.    public void codeValue(Environment var1, Context var2, Assembler var3) {
  26.       super.left.codeValue(var1, var2, var3);
  27.       super.right.codeValue(var1, var2, var3);
  28.       ((BinaryExpression)this).codeOperation(var1, var2, var3);
  29.    }
  30. }
  31.