diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-15 15:19:54 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-15 15:19:54 -0600 |
commit | 04e9109f112f4cb7317416c2e31806f42663cb45 (patch) | |
tree | 9ae99f2bc5d5fbb41d731792b1d22a30f2e642b3 /st/TypeInstance.java | |
parent | 056690e0e60d4d0ce046c171691aa02a7071eeae (diff) |
Allow MethodInstance to keep track of parent class
Diffstat (limited to 'st/TypeInstance.java')
-rw-r--r-- | st/TypeInstance.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/st/TypeInstance.java b/st/TypeInstance.java index 65311a8..88b73f3 100644 --- a/st/TypeInstance.java +++ b/st/TypeInstance.java @@ -2,25 +2,15 @@ package st; public class TypeInstance extends AbstractInstance { - ClassInstance cls; - public TypeInstance(String name, TypeEnum type) { super(name, type); } - public void addClassInstance(ClassInstance cls) { - this.cls = cls; - } - public int getSize() { return (this.cls != null) ? cls.getSize() : 4; } - public ClassInstance getClassInstance() { - return this.cls; - } - public boolean sameType(TypeInstance other) { /** * Given a TypeInstance object other, |