summaryrefslogtreecommitdiff
path: root/st/TypeInstance.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-09 21:51:27 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-09 21:51:27 -0600
commitc1e124b957fa840f7bd8da9ffc6871140cfabf16 (patch)
tree46140a2cad0b9ff95ed0e5728b47bb1c46d1cca5 /st/TypeInstance.java
parent0de1debf8b72c460d6974de8a8ab9cbbdeecb160 (diff)
Finished Vaporize.MessageSend
Diffstat (limited to 'st/TypeInstance.java')
-rw-r--r--st/TypeInstance.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/st/TypeInstance.java b/st/TypeInstance.java
index 302f9f0..596f638 100644
--- a/st/TypeInstance.java
+++ b/st/TypeInstance.java
@@ -2,10 +2,20 @@ 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 ClassInstance getClassInstance() {
+ return this.cls;
+ }
+
public boolean sameType(TypeInstance other) {
/**
* Given a TypeInstance object other,