* Some getters in syntaxtree
* Extend RunParser (makes problems).
This commit is contained in:
parent
7f05966093
commit
b5a2d64a7b
@ -35,6 +35,11 @@ public class RunParser{
|
||||
System.out.println(mod.getClass().getName());
|
||||
}
|
||||
System.out.println(c.getClassName().toString());
|
||||
System.out.println("{");
|
||||
for(Field field : c.getFieldDecl()){
|
||||
System.out.println(field.getName());
|
||||
}
|
||||
System.out.println("}");
|
||||
}
|
||||
}
|
||||
catch(java.util.NoSuchElementException e){
|
||||
|
@ -56,4 +56,8 @@ public class ClassOrInterface extends GTVDeclarationContext implements IItemWith
|
||||
return this.modifiers;
|
||||
}
|
||||
|
||||
public List<Field> getFieldDecl(){
|
||||
return this.fielddecl;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -19,6 +19,8 @@ public class Field extends GTVDeclarationContext implements Generic {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
public String getName(){
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user