Fix another inner class bug: an inner class which is declared in a *static context...
[IRC.git] / Robust / src / IR / ClassDescriptor.java
index 00a2e45cd732f42081ec1846cab384f2606affe1..e6122e0b812ed6e0c1981a832efbdbdaf2064c21 100644 (file)
@@ -40,6 +40,8 @@ public class ClassDescriptor extends Descriptor {
   int innerDepth = 0;
   ClassDescriptor surroundingdesc=null;
   SymbolTable surroundingNameTable = null;
+  MethodDescriptor surroundingBlock=null;
+  boolean inStaticContext=false;
 
   SymbolTable innerdescs;
 
@@ -478,4 +480,20 @@ public class ClassDescriptor extends Descriptor {
   public SymbolTable getSurroundingNameTable() {
     return this.surroundingNameTable;
   }
+  
+  public void setSurroundingBlock(MethodDescriptor md) {
+    this.surroundingBlock = md;
+  }
+  
+  public MethodDescriptor getSurroundingBlock() {
+    return this.surroundingBlock;
+  }
+  
+  public void setInStaticContext() {
+    this.inStaticContext = true;
+  }
+  
+  public boolean getInStaticContext() {
+    return this.inStaticContext;
+  }
 }