From 51258723586950abf863b7e0ebf5183dcd1b275a Mon Sep 17 00:00:00 2001 From: stephey Date: Wed, 20 Apr 2011 10:01:05 +0000 Subject: [PATCH] left out of last checkin --- Robust/src/IR/ClassDescriptor.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Robust/src/IR/ClassDescriptor.java b/Robust/src/IR/ClassDescriptor.java index 6a8c2108..46d73e76 100644 --- a/Robust/src/IR/ClassDescriptor.java +++ b/Robust/src/IR/ClassDescriptor.java @@ -18,6 +18,9 @@ public class ClassDescriptor extends Descriptor { SymbolTable flags; SymbolTable methods; + Hashtable singleImports; + Vector multiImports; + int numstaticblocks = 0; int numstaticfields = 0; @@ -49,6 +52,7 @@ public class ClassDescriptor extends Descriptor { } public ClassDescriptor(String packagename, String classname, boolean isInterface) { + //make the name canonical by class file path (i.e. package) super(classname); superclass=null; flags=new SymbolTable(); @@ -409,8 +413,17 @@ public class ClassDescriptor extends Descriptor { this.sourceFileName=sourceFileName; } + public void setImports(Hashtable singleImports, Vector multiImports) { + this.singleImports = singleImports; + this.multiImports = multiImports; + } + public String getSourceFileName(){ return this.sourceFileName; } + public Hashtable getSingleImportMappings() { + return this.singleImports; + } + } -- 2.34.1