Mercurial > hg > truffle
comparison graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Node.java @ 15146:65efd2eeea1b
Remove AbstractNodeIterable, move its methods to default methods on NodeIterable.
This allows to remove a number of duplicated methods in NodeList
NodeClassIterable is also interface instead of an abstract class.
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 14 Apr 2014 16:31:13 +0200 |
parents | 288c23143d47 |
children | 101a31da0dd0 |
comparison
equal
deleted
inserted
replaced
15145:df2ef5204f2b | 15146:65efd2eeea1b |
---|---|
226 public void remove() { | 226 public void remove() { |
227 throw new UnsupportedOperationException(); | 227 throw new UnsupportedOperationException(); |
228 } | 228 } |
229 } | 229 } |
230 | 230 |
231 class NodeUsageIterable extends AbstractNodeIterable<Node> { | 231 class NodeUsageIterable implements NodeIterable<Node> { |
232 | 232 |
233 public NodeUsageIterator iterator() { | 233 public NodeUsageIterator iterator() { |
234 return new NodeUsageIterator(); | 234 return new NodeUsageIterator(); |
235 } | 235 } |
236 | 236 |