From 50916b5db23fa000db3e3692d03eef2b33f2887d Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Thu, 29 Oct 2015 17:00:39 +0100 Subject: [PATCH] =?UTF-8?q?SourceFile=20als=20Parent=20f=C3=BCr=20Class.pa?= =?UTF-8?q?rserPostProcessing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java b/src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java index db782e91..f39e6968 100644 --- a/src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java +++ b/src/de/dhbwstuttgart/syntaxtree/factory/ASTFactory.java @@ -4,6 +4,7 @@ import de.dhbwstuttgart.bytecode.ClassGenerator; import de.dhbwstuttgart.syntaxtree.Class; import de.dhbwstuttgart.syntaxtree.Constructor; import de.dhbwstuttgart.syntaxtree.Method; +import de.dhbwstuttgart.syntaxtree.SourceFile; import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode; import de.dhbwstuttgart.syntaxtree.misc.DeclId; import de.dhbwstuttgart.syntaxtree.misc.UsedId; @@ -47,16 +48,15 @@ public class ASTFactory { return new Constructor(method, superClass); } - public static Class createClass(String className, String superClass, Class parent) { + public static Class createClass(String className, String superClass, SourceFile parent) { // TODO bytecode createClass Class generatedClass = new Class(className, 0); - generatedClass.addField(ASTFactory.createEmptyConstructor(parent)); + generatedClass.addField(ASTFactory.createEmptyConstructor(generatedClass)); if(superClass != null){ generatedClass.superclassid = UsedId.createFromQualifiedName(superClass, 0); } - //TODO bytecode parserPostProcressing ist die SuperKlasse oder eine Sourcefile? generatedClass.parserPostProcessing(parent); return generatedClass;