From 0ae01301d572b2e69585c4d1cb753ed7fc89dfe3 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Tue, 2 Apr 2024 23:23:06 -0600 Subject: Store SymTable child information as an array of strings --- st/ClassInstance.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'st/ClassInstance.java') 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 attrs; // the list of class-fields - private ArrayList mtds; // the list of methods - private String ext; // the name of the extended class (null if none) + private ArrayList attrs; // the list of class-fields + private ArrayList 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 attrs) { + public void set_attrs(ArrayList attrs) { this.attrs = attrs; } - public void set_mtds(ArrayList mtds) { + public void set_mtds(ArrayList mtds) { this.mtds = mtds; } -- cgit v1.2.3