Exemplo n.º 1
0
 public HeadListWrapper(HeadList headList, String name) {
   Object[] children = headList.getChildren();
   Term term = (Term) children[0];
   children[0] = term.create(term.getChildren());
   headList_ = (HeadList) headList.create(children);
   name_ = name;
 }
Exemplo n.º 2
0
 public Object[] getChildren() {
   final List<?> list = headList_.getList();
   if (list.isEmpty()) {
     // should not happen except for printing log messages
     return new Object[] {name_, "?"};
   }
   Object o = list.remove(0);
   if (list.isEmpty()) {
     return new Object[] {name_, o, headList_.getJoker()};
   }
   return new Object[] {name_, o, this};
 }