Commit 04f9a8e6 authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Synching

parent 10b12bd8
......@@ -62,10 +62,10 @@ aspect AbsGrammarGeneration {
}
void OwlRestriction.genAbsGrammar(PrintStream pStream) {
pStream.print(getRestrictionClassId().substring(0,1).toLowerCase()+
getRestrictionClassId().substring(1));
pStream.print(":");
pStream.print(getRestrictionClassId());
// pStream.print(getRestrictionClassId().substring(0,1).toLowerCase()+
// getRestrictionClassId().substring(1));
// pStream.print(":");
pStream.print(name());
if (allValuesFrom()) {
pStream.print("*");
}
......@@ -177,12 +177,14 @@ aspect GenRewrites {
for (int i=0; i<restr.getNumOwlRestriction(); i++) {
OwlRestriction r = restr.getOwlRestriction(i);
if (r.allValuesFrom()) {
pStream.println(ind(3)+"node.set"+r.name().substring(0,1).toLowerCase()+
r.name().substring(1)+"List(new List());");
pStream.println(ind(3)+"node.set"+r.name()+"List(new List());");
// pStream.println(ind(3)+"node.set"+r.name().substring(0,1).toLowerCase()+
// r.name().substring(1)+"List(new List());");
} else {
pStream.println(ind(3)+r.name()+" c"+ix+" = new "+r.name()+"();");
pStream.println(ind(3)+"node.set"+r.name().substring(0,1).toLowerCase()+
r.name().substring(1)+"(c"+(ix++)+");");
pStream.println(ind(3)+"node.set"+r.name()+"(c"+(ix++)+");");
// pStream.println(ind(3)+"node.set"+r.name().substring(0,1).toLowerCase()+
// r.name().substring(1)+"(c"+(ix++)+");");
}
}
pStream.println(ind(3)+"return node;");
......
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