comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @ 16467:17f7331dcc4f

Truffle: move iterator to NodeClass
author Andreas Woess <andreas.woess@jku.at>
date Thu, 10 Jul 2014 18:08:29 +0200
parents 76081918079d
children f8998c828bed
comparison
equal deleted inserted replaced
16466:d41922beb512 16467:17f7331dcc4f
355 * Iterator over the children of this node. 355 * Iterator over the children of this node.
356 * 356 *
357 * @return the iterator 357 * @return the iterator
358 */ 358 */
359 public final Iterable<Node> getChildren() { 359 public final Iterable<Node> getChildren() {
360 final Node node = this;
361 return new Iterable<Node>() { 360 return new Iterable<Node>() {
362
363 public Iterator<Node> iterator() { 361 public Iterator<Node> iterator() {
364 return new NodeUtil.NodeIterator(node); 362 return NodeUtil.makeIterator(Node.this);
365 } 363 }
366 }; 364 };
367 } 365 }
368 366
369 /** 367 /**