// Body //////////////////////////////////////////////////////////////////////////////
protected static interface Body<T> {
- TreeMaker<T> expand(int i, TreeMaker<T> h);
+ void expand(int i, TreeMaker<T> h);
}
protected static class MyBody<T> extends Forest<T> implements Body<T> /* extends PrintableTree<Forest<T>> implements */ {
this.singleton = singleton;
}
- public TreeMaker<T> expand(final int i, final TreeMaker<T> h) {
+ public void expand(final int i, final TreeMaker<T> h) {
if (singleton) {
tokens[0].visit(h, null, i);
- return h;
+ return;
}
if (i==0) h.start(tag, location);
}
}, null, null);
}
- return h;
}
protected String headToString() { return null; }