Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @ 18332:65a160d9d259
Truffle: add NodeInterface and require that all child fields be of this type
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Mon, 10 Nov 2014 19:29:08 +0100 |
parents | 763a34f283f9 |
children | 7bf2965140de |
comparison
equal
deleted
inserted
replaced
18331:803b0b06e408 | 18332:65a160d9d259 |
---|---|
34 import com.oracle.truffle.api.utilities.*; | 34 import com.oracle.truffle.api.utilities.*; |
35 | 35 |
36 /** | 36 /** |
37 * Abstract base class for all Truffle nodes. | 37 * Abstract base class for all Truffle nodes. |
38 */ | 38 */ |
39 public abstract class Node implements Cloneable { | 39 public abstract class Node implements NodeInterface, Cloneable { |
40 | 40 |
41 @CompilationFinal private Node parent; | 41 @CompilationFinal private Node parent; |
42 | 42 |
43 @CompilationFinal private SourceSection sourceSection; | 43 @CompilationFinal private SourceSection sourceSection; |
44 | 44 |