Mercurial > hg > truffle
diff graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ChildrenNodesTest.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 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ChildrenNodesTest.java Wed Jan 23 16:34:38 2013 +0100 +++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ChildrenNodesTest.java Wed Jan 23 16:34:57 2013 +0100 @@ -32,17 +32,19 @@ /** * <h3>Creating an Array of Children Nodes</h3> - * + * * <p> - * An array of children nodes can be used as a field in a parent node. The field has to be annotated with - * {@link com.oracle.truffle.api.nodes.Node.Children} and must be declared private and final. Before assigning the field - * in the parent node constructor, {@link Node#adoptChildren} must be called in order to update the parent pointers in - * the child nodes. After filling the array with its first values, it must never be changed. It is only possible to call - * {@link Node#replace} on a child node. + * An array of children nodes can be used as a field in a parent node. The field has to be annotated + * with {@link com.oracle.truffle.api.nodes.Node.Children} and must be declared private and final. + * Before assigning the field in the parent node constructor, {@link Node#adoptChildren} must be + * called in order to update the parent pointers in the child nodes. After filling the array with + * its first values, it must never be changed. It is only possible to call {@link Node#replace} on a + * child node. * </p> - * + * * <p> - * The next part of the Truffle API introduction is at {@link com.oracle.truffle.api.test.FinalFieldTest}. + * The next part of the Truffle API introduction is at + * {@link com.oracle.truffle.api.test.FinalFieldTest}. * </p> */ public class ChildrenNodesTest { @@ -83,9 +85,9 @@ } class TestChildNode extends Node { + public int execute() { return 21; } } } -