Annotation Type NodeChild


@Retention(CLASS) @Target(TYPE) public @interface NodeChild
A NodeChild element defines an executable child for the enclosing Node. A Node contains multiple NodeChildren specified in linear execution order.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The executeWith() property allows a node to pass the result of one child's executable as an input to another child's executable.
     
     
  • Element Details

    • value

      String value
      Default:
      ""
    • type

      Class<?> type
      Default:
      com.oracle.truffle.api.nodes.Node.class
    • executeWith

      String[] executeWith
      The executeWith() property allows a node to pass the result of one child's executable as an input to another child's executable. These referenced children must be defined before the current node in the execution order. The current node type() attribute must be set to a Node which supports the evaluated execution with the number of executeWith() arguments that are defined. For example if this child is executed with one argument, the type() attribute must define a node which publicly declares a method with the signature Object execute*(VirtualFrame, Object).
      Default:
      {}