Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java @ 22147:5857f5ee9486
More precise description of inter-operability messages and examples of their usage. Step #1 - e.g. the trivial messages.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Mon, 14 Sep 2015 13:33:03 +0200 |
parents | d5f809827bf1 |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
22146:d5f809827bf1 | 22147:5857f5ee9486 |
---|---|
195 public void applyInstrumentation() { | 195 public void applyInstrumentation() { |
196 } | 196 } |
197 | 197 |
198 /** | 198 /** |
199 * Helper method to create a root node that always returns the same value. Certain operations | 199 * Helper method to create a root node that always returns the same value. Certain operations |
200 * (expecially {@link com.oracle.truffle.api.interop inter-operability} API) require return | 200 * (expecially {@link com.oracle.truffle.api.interop inter-operability} API) require return of |
201 * of stable {@link RootNode root nodes}. To simplify creation of such nodes, here is a factory | 201 * stable {@link RootNode root nodes}. To simplify creation of such nodes, here is a factory |
202 * method that can create {@link RootNode} that returns always the same value. | 202 * method that can create {@link RootNode} that returns always the same value. |
203 * | 203 * |
204 * @param constant the constant to return | 204 * @param constant the constant to return |
205 * @return root node returning the constant | 205 * @return root node returning the constant |
206 */ | 206 */ |