/** * Creates a deep clone of this {@link ANewExpIR} 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 ANewExpIR} node */ public ANewExpIR clone(Map<INode,INode> oldToNewMap) { ANewExpIR node = new ANewExpIR( _sourceNode, _tag, _metaData, cloneNode(_type, oldToNewMap), cloneNode(_name, oldToNewMap), cloneList(_args, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ANewExpIR} node. * @return a deep clone of this {@link ANewExpIR} node */ public ANewExpIR clone() { return new ANewExpIR( _sourceNode, _tag, _metaData, cloneNode(_type), cloneNode(_name), cloneList(_args) ); }