Commit 120386a7 authored by Anders Nilsson's avatar Anders Nilsson

Synching

parent 77e30aa3
......@@ -8,10 +8,22 @@
aspect SkillserverInterface {
public Thing ASTNode.getIndividual(String id) {
System.out.println("foo");
System.out.println("foo: "+this);
for (int i=0; i<getNumChild(); i++) {
Thing t = getChild(i).getIndividual(id);
if (t!=null) {
System.out.println("Found: "+t);
return t;
}
}
return null;
}
public Thing Start.getIndividual(String id) {
for (int i=0; i<getNumElement(); i++) {
Thing t = getElement(i).getIndividual(id);
if (t!=null) {
System.out.println("Found: "+t);
return t;
}
}
......@@ -27,3 +39,10 @@ aspect SkillserverInterface {
}
}
}
aspect PrettyPrinter {
public void Start.prettyPrint() {
System.out.println("PrettyPrinting");
prettyPrint("",System.out);
}
}
Markdown is supported
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