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