diff --git a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java index 0e4468df..4b5c1d64 100644 --- a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java +++ b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java @@ -66,6 +66,14 @@ public class SyntaxTreeGenerator{ Java8Parser.NormalClassDeclarationContext nc = cl.normalClassDeclaration(); if(nc != null){ Modifiers modifiers = null; + if(nc.classModifier() != null){ + List modList = new ArrayList(); + for(Java8Parser.ClassModifierContext mod : nc.classModifier()){ + Modifier m = convert(mod); + modList.add(m); + } + modifiers = new Modifiers(modList); + } JavaClassName name = null; if(this.pkgName != null){ name = new JavaClassName(this.pkgName +"."+ nc.Identifier().toString()); @@ -73,7 +81,6 @@ public class SyntaxTreeGenerator{ else{ name = new JavaClassName(nc.Identifier().toString()); } - System.out.println("Created name" + name); Block class_block = null; List fielddecl = null; GenericDeclarationList genericClassParameters = null; @@ -86,4 +93,8 @@ public class SyntaxTreeGenerator{ } return null; } + + private Modifier convert(Java8Parser.ClassModifierContext ctx){ + return null; + } } diff --git a/src/de/dhbwstuttgart/syntaxtree/modifier/Modifiers.java b/src/de/dhbwstuttgart/syntaxtree/modifier/Modifiers.java index efed7fd9..10162203 100755 --- a/src/de/dhbwstuttgart/syntaxtree/modifier/Modifiers.java +++ b/src/de/dhbwstuttgart/syntaxtree/modifier/Modifiers.java @@ -15,6 +15,10 @@ import java.util.List; public class Modifiers { protected List modifier = new ArrayList(); + + public Modifiers(List modifier){ + this.modifier = modifier; + } // ino.end