Fix implementation of BredthFirstRecursiveVisitor.
This commit is contained in:
parent
87e968690b
commit
dbf8fa77d1
@ -8,12 +8,17 @@ public abstract class BredthFirstRecusiveVisitor implements RocketComponentVisit
|
|||||||
@Override
|
@Override
|
||||||
public final void visit(RocketComponent visitable) {
|
public final void visit(RocketComponent visitable) {
|
||||||
|
|
||||||
|
this.doAction(visitable);
|
||||||
|
|
||||||
|
for ( RocketComponent child: visitable.getChildren() ) {
|
||||||
|
this.doAction(child);
|
||||||
|
}
|
||||||
|
|
||||||
for ( RocketComponent child: visitable.getChildren() ) {
|
for ( RocketComponent child: visitable.getChildren() ) {
|
||||||
this.visit(child);
|
this.visit(child);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.doAction(visitable);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract void doAction( RocketComponent visitable );
|
protected abstract void doAction( RocketComponent visitable );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user