summaryrefslogtreecommitdiff
path: root/st/MethodInstance.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-25 16:59:15 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-25 16:59:15 -0600
commit34fad9467618d10178d55f30c034f93ce03ada25 (patch)
tree494b3fd4cb4797070232b5add521f35c2adc70d8 /st/MethodInstance.java
parent971666e64a46f342d633c4410ef08f216c5049b4 (diff)
BoilVisitor.MessageSend for Bracket, proper class Extension in ST
Diffstat (limited to 'st/MethodInstance.java')
-rw-r--r--st/MethodInstance.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/st/MethodInstance.java b/st/MethodInstance.java
index c2f978b..9f1e6df 100644
--- a/st/MethodInstance.java
+++ b/st/MethodInstance.java
@@ -5,10 +5,10 @@ import java.util.ArrayList;
public class MethodInstance extends AbstractInstance {
private ArrayList<TypeInstance> args; // the list of arguments
private ArrayList<TypeInstance> lvars; // the list of local variables
- protected ClassInstance par_cls; // the surrounding class
- private TypeEnum rtrn; // the returned type
+ protected ClassInstance par_cls; // the surrounding class
+ private ClassInstance rtrn; // the returned type
- public MethodInstance(String name, TypeEnum rtrn, ClassInstance par_cls) {
+ public MethodInstance(String name, ClassInstance rtrn, ClassInstance par_cls) {
super(name, TypeEnum.method);
this.lvars = new ArrayList<>();
this.args = new ArrayList<>();
@@ -31,7 +31,7 @@ public class MethodInstance extends AbstractInstance {
return this.lvars;
}
- public TypeEnum getReturn() {
+ public ClassInstance getReturn() {
return this.rtrn;
}