Skip to content
Snippets Groups Projects
Commit 10b12bd8 authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Hacked PrettyPrinter generation so that it at least prints something for every type in the ontology

parent f837e8e7
Branches
No related tags found
No related merge requests found
......@@ -129,13 +129,13 @@ aspect GenPrettyPrinter {
pStream.print(" public void "+name());
pStream.println(".prettyPrint(String indent, PrintStream pStream) {");
pStream.print(" System.out.println(indent+\"<"+name());
for (int i=0; i<getNumAttribute(); i++) {
getAttribute(i).genPrettyPrinter(ind,pStream);
}
// for (int i=0; i<getNumAttribute(); i++) {
// getAttribute(i).genPrettyPrinter(ind,pStream);
// }
pStream.println(">\");");
for (int i=0; i<getNumElement(); i++) {
getElement(i).genPrettyPrinter(ind,pStream);
}
pStream.println(" for (int i=0; i<getNumElement(); i++) {");
pStream.println(" getElement(i).prettyPrint(indent,pStream);");
pStream.println(" }");
pStream.println(" System.out.println(indent+\"</"+name()+">\");");
pStream.println("}\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment