diff options
Diffstat (limited to 'st/ClassInstance.java')
-rw-r--r-- | st/ClassInstance.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/st/ClassInstance.java b/st/ClassInstance.java index 8b49236..a444f26 100644 --- a/st/ClassInstance.java +++ b/st/ClassInstance.java @@ -3,9 +3,9 @@ package st; import java.util.ArrayList; public class ClassInstance extends AbstractInstance { - private ArrayList<TypeInstance> attrs; // the list of class-fields - private ArrayList<MethodInstance> mtds; // the list of methods - private String ext; // the name of the extended class (null if none) + private ArrayList<String> attrs; // the list of class-fields + private ArrayList<String> mtds; // the list of methods + private String ext; // the name of the extended class (null if none) public ClassInstance(String name) { super(name, TypeEnum.classname); @@ -22,15 +22,15 @@ public class ClassInstance extends AbstractInstance { public String toString() { return name + ":T[" + type + "]E[" + this.ext + "]A[" + this.attrs.toString() + - "]";//M[" + this.mtds.toString() + "]"; + "]M[" + this.mtds.toString() + "]"; } - public void set_attrs(ArrayList<TypeInstance> attrs) { + public void set_attrs(ArrayList<String> attrs) { this.attrs = attrs; } - public void set_mtds(ArrayList<MethodInstance> mtds) { + public void set_mtds(ArrayList<String> mtds) { this.mtds = mtds; } |