Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/InterfaceChildFieldTest.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 | c88ab4f1f04a |
children |
comparison
equal
deleted
inserted
replaced
18331:803b0b06e408 | 18332:65a160d9d259 |
---|---|
89 public Object execute(VirtualFrame frame) { | 89 public Object execute(VirtualFrame frame) { |
90 return child.executeIntf(); | 90 return child.executeIntf(); |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 interface TestChildInterface { | 94 interface TestChildInterface extends NodeInterface { |
95 int executeIntf(); | 95 int executeIntf(); |
96 } | 96 } |
97 | 97 |
98 class TestLeafNode extends Node implements TestChildInterface { | 98 class TestLeafNode extends Node implements TestChildInterface { |
99 public TestLeafNode() { | 99 public TestLeafNode() { |