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