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
......@@ -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");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment