diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-06 19:02:21 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-06 19:02:21 -0600 |
commit | b03859dce5991169b07d1d5040c8faf7ba82e5b5 (patch) | |
tree | 5a1217d441c9323976aef6e45018c9c2522930a6 /st/AbstractInstance.java | |
parent | 0ae01301d572b2e69585c4d1cb753ed7fc89dfe3 (diff) |
Rewrite SymbolTable again P1
Diffstat (limited to 'st/AbstractInstance.java')
-rw-r--r-- | st/AbstractInstance.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/st/AbstractInstance.java b/st/AbstractInstance.java index a7dc8eb..65b0db7 100644 --- a/st/AbstractInstance.java +++ b/st/AbstractInstance.java @@ -10,25 +10,27 @@ public abstract class AbstractInstance { this.name = name; } - public abstract String toString(); + public String toString() { + return this.name; + } public boolean equals(AbstractInstance other) { - return this.name == other.get_name(); + return this.name == other.getName(); } public int hashCode() { return this.name.hashCode(); } - public String get_name() { + public String getName() { return this.name; } - public TypeEnum get_type() { + public TypeEnum getType() { return this.type; } - public int get_size() { + public int getSize() { return this.size; } |