home *** CD-ROM | disk | FTP | other *** search
/ Tutto per Internet / Internet.iso / soft95 / Java / espints / espinst.exe / classes / espresso / Env.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-02-28  |  1.5 KB  |  59 lines

  1. package espresso;
  2.  
  3. class Env implements Constants {
  4.    boolean isSelfCall;
  5.    boolean isStatic;
  6.    TypSet reported;
  7.    Scope importScope;
  8.    Scope globalScope;
  9.    Scope scope;
  10.    Name packageName;
  11.    ClassDef enclClass;
  12.    FunDef enclMeth;
  13.    FunDef enclFun;
  14.    TopLevel toplevel;
  15.    AST parent;
  16.    Env next;
  17.  
  18.    boolean isInterface() {
  19.       return this.parent.tag == 16 && (this.enclClass.mods & 512) != 0;
  20.    }
  21.  
  22.    Env(Env var1, AST var2, Scope var3) {
  23.       this(var1, var2);
  24.       this.scope = var3;
  25.    }
  26.  
  27.    Env(Env var1, AST var2) {
  28.       this.next = var1;
  29.       this.parent = var2;
  30.       this.toplevel = var1.toplevel;
  31.       this.enclFun = var1.enclFun;
  32.       this.enclMeth = var1.enclMeth;
  33.       this.enclClass = var1.enclClass;
  34.       this.packageName = var1.packageName;
  35.       this.scope = var1.scope;
  36.       this.globalScope = var1.globalScope;
  37.       this.importScope = var1.importScope;
  38.       this.reported = var1.reported;
  39.       this.isStatic = var1.isStatic;
  40.       this.isSelfCall = var1.isSelfCall;
  41.    }
  42.  
  43.    Env(TopLevel var1) {
  44.       this.next = null;
  45.       this.parent = var1;
  46.       this.toplevel = var1;
  47.       this.enclFun = null;
  48.       this.enclMeth = null;
  49.       this.enclClass = null;
  50.       this.packageName = Name.fromString("");
  51.       this.scope = new Scope((Scope)null, (Obj)null);
  52.       this.globalScope = this.scope;
  53.       this.importScope = new Scope((Scope)null, (Obj)null);
  54.       this.reported = null;
  55.       this.isStatic = false;
  56.       this.isSelfCall = false;
  57.    }
  58. }
  59.