37
CS269: HW/SW Engineering of Embedded Systems, Winter02
Using TM_CHILDREN_FIRST
•One useful method to retrieve the return values of the children nodes:
–Object childReturnValueAt(int index);
•  Example:
       public Object visitBlockNode(BlockNode node, LinkedList args){
          return node.childReturnValueAt(node.CHILD_INDEX_STMTS)
      }
BlockNode
StatementNode
StatementNode
StatementNode