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("++");