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 / CodeContext.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-07-08  |  775 b   |  34 lines

  1. package sun.tools.tree;
  2.  
  3. import sun.tools.asm.Label;
  4.  
  5. class CodeContext extends Context {
  6.    Label breakLabel;
  7.    Label contLabel;
  8.  
  9.    CodeContext(Context var1, Node var2) {
  10.       super(var1, var2);
  11.       switch (var2.op) {
  12.          case 92:
  13.          case 93:
  14.          case 94:
  15.          case 103:
  16.          case 126:
  17.             this.breakLabel = new Label();
  18.             this.contLabel = new Label();
  19.             return;
  20.          case 95:
  21.          case 101:
  22.          case 150:
  23.          case 151:
  24.             this.breakLabel = new Label();
  25.             return;
  26.          default:
  27.             if (var2 instanceof Statement && ((Statement)var2).labels != null) {
  28.                this.breakLabel = new Label();
  29.             }
  30.  
  31.       }
  32.    }
  33. }
  34.