/** * Wraps the output of the underlying iterator's next() method into a Map * with the key being the name of this BaclavaIteratorNode */ public Object next() { Map result = new HashMap(); result.put(name, iterator.next()); return result; }
String desiredType = "l('text/plain')"; for (BaclavaIterator i = thing.iterator(desiredType); i.hasNext();) { DataThing insideThing = (DataThing) i.next(); System.out.println("Iterated, type of nested thing is " + insideThing.getSyntacticType());
BaclavaIterator i = theDataThing.iterator("''"); for (; i.hasNext();) { DataThing innerThing = (DataThing) (i.next()); print(innerThing);