comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/RootNodeTest.java @ 7530:5e3d1a68664e

applied mx eclipseformat to all Java files
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Jan 2013 16:34:57 +0100
parents a4b84ba6dc2e
children df1d665ca846
comparison
equal deleted inserted replaced
7529:4a11124a3563 7530:5e3d1a68664e
28 import com.oracle.truffle.api.frame.*; 28 import com.oracle.truffle.api.frame.*;
29 import com.oracle.truffle.api.nodes.*; 29 import com.oracle.truffle.api.nodes.*;
30 30
31 /** 31 /**
32 * <h3>Creating a Root Node</h3> 32 * <h3>Creating a Root Node</h3>
33 * 33 *
34 * <p> 34 * <p>
35 * A Truffle root node is the entry point into a Truffle tree that represents a guest language method. It contains a 35 * A Truffle root node is the entry point into a Truffle tree that represents a guest language
36 * {@link RootNode#execute(VirtualFrame)} method that can return a {@link java.lang.Object} value as the result of the 36 * method. It contains a {@link RootNode#execute(VirtualFrame)} method that can return a
37 * guest language method invocation. This method must however never be called directly. Instead, the Truffle runtime 37 * {@link java.lang.Object} value as the result of the guest language method invocation. This method
38 * must be used to create a {@link CallTarget} object from a root node using the 38 * must however never be called directly. Instead, the Truffle runtime must be used to create a
39 * {@link TruffleRuntime#createCallTarget(RootNode)} method. This call target object can then be executed using the 39 * {@link CallTarget} object from a root node using the
40 * {@link CallTarget#call()} method or one of its overloads. 40 * {@link TruffleRuntime#createCallTarget(RootNode)} method. This call target object can then be
41 * executed using the {@link CallTarget#call()} method or one of its overloads.
41 * </p> 42 * </p>
42 * 43 *
43 * <p> 44 * <p>
44 * The next part of the Truffle API introduction is at {@link com.oracle.truffle.api.test.ChildNodeTest}. 45 * The next part of the Truffle API introduction is at
46 * {@link com.oracle.truffle.api.test.ChildNodeTest}.
45 * </p> 47 * </p>
46 */ 48 */
47 public class RootNodeTest { 49 public class RootNodeTest {
48 50
49 @Test 51 @Test