/** * Returns a deep clone of this {@link AReturnStmIR} node. * @return a deep clone of this {@link AReturnStmIR} node */ public AReturnStmIR clone() { return new AReturnStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp) ); }
/** * Creates a deep clone of this {@link AReturnStmIR} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link AReturnStmIR} node */ public AReturnStmIR clone(Map<INode,INode> oldToNewMap) { AReturnStmIR node = new AReturnStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp, oldToNewMap) ); oldToNewMap.put(this, node); return node; }