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