From a8a7ad564bdce4a097fdeefe716e26018a7fe984 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Thu, 26 Feb 2015 17:46:04 +0100 Subject: [PATCH] Super-Aufruf implementieren --- .../syntaxtree/statement/SuperCall.java | 28 ++----------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/src/de/dhbwstuttgart/syntaxtree/statement/SuperCall.java b/src/de/dhbwstuttgart/syntaxtree/statement/SuperCall.java index cdc1d0f19..5a494a280 100644 --- a/src/de/dhbwstuttgart/syntaxtree/statement/SuperCall.java +++ b/src/de/dhbwstuttgart/syntaxtree/statement/SuperCall.java @@ -32,7 +32,7 @@ import de.dhbwstuttgart.typeinference.unify.CSubstitutionSet; -public class SuperCall extends MethodCall +public class SuperCall extends ThisCall { public SuperCall(int offset,int variableLength) { @@ -44,29 +44,9 @@ public class SuperCall extends MethodCall this.parent = parent; } - public ArgumentList arglist; - - public void set_ArgumentList(ArgumentList al) - { - this.arglist = al; - } - - public ArgumentList getArgumentList() - { - return this.arglist; - } - - public void set_UsedId(UsedId ui) - { - this.usedid = ui; - } - - - - @Override public ConstraintsSet TYPEExpr(TypeAssumptions assumptions) { - throw new TypeinferenceException("this(...)-Aufruf kann nicht als Ausdruck verwendet werden",this); + throw new TypeinferenceException("super(...)-Aufruf kann nicht als Ausdruck verwendet werden",this); } /** @@ -101,8 +81,6 @@ public class SuperCall extends MethodCall @Override public JavaCodeResult printJavaCode(ResultSet resultSet) { return new JavaCodeResult("super("+this.getArgumentList().printJavaCode(resultSet)+")"); - } - - + } }