From f92a53ce741ce7d38257846353a2a7238bc2ef12 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Thu, 26 Jan 2017 17:16:06 +0100 Subject: [PATCH] =?UTF-8?q?Aufr=C3=A4umen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java | 4 ++-- src/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java | 2 +- src/de/dhbwstuttgart/syntaxtree/statement/PostIncExpr.java | 6 +----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java b/src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java index e4812898..6057c3e5 100644 --- a/src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java +++ b/src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java @@ -32,11 +32,11 @@ public class ASTFactory { names = scope; } - public static Method createEmptyMethod(String withSignature, Class parent) { + public Method createEmptyMethod(String withSignature, Class parent) { return ASTFactory.createMethod(withSignature, new ParameterList(), new Block(), parent); } - public static Constructor createEmptyConstructor(Class parent){ + public Constructor createEmptyConstructor(Class parent){ Block block = new Block(); block.setType(new de.dhbwstuttgart.syntaxtree.type.Void(block, 0)); block.statements.add(new SuperCall(block)); diff --git a/src/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java b/src/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java index cf77d708..91fe59ab 100755 --- a/src/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java +++ b/src/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java @@ -36,7 +36,7 @@ import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException; public class MethodCall extends Expr { public MethodCall(Receiver receiver, String methodName, ArgumentList argumentList, int offset){ - this(offset, 0); + this(offset); this.set_Receiver(receiver); this.set_Name(methodName); this.set_ArgumentList(argumentList); diff --git a/src/de/dhbwstuttgart/syntaxtree/statement/PostIncExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/PostIncExpr.java index 2fbb058f..7873d1b7 100755 --- a/src/de/dhbwstuttgart/syntaxtree/statement/PostIncExpr.java +++ b/src/de/dhbwstuttgart/syntaxtree/statement/PostIncExpr.java @@ -50,14 +50,10 @@ public class PostIncExpr extends UnaryExpr public String get_Name() { return null; - } - - public void wandleRefTypeAttributes2GenericAttributes(Menge paralist, Menge genericMethodParameters) - { } @Override -public JavaCodeResult printJavaCode(ResultSet resultSet) { + public JavaCodeResult printJavaCode(ResultSet resultSet) { JavaCodeResult ret = new JavaCodeResult(); ret.attach(this.expr.printJavaCode(resultSet)); ret.attach("++");