/** * Creates a deep clone of this {@link AMapSeqUpdateStmIR} 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 AMapSeqUpdateStmIR} node */ public AMapSeqUpdateStmIR clone(Map<INode,INode> oldToNewMap) { AMapSeqUpdateStmIR node = new AMapSeqUpdateStmIR( _sourceNode, _tag, _metaData, cloneNode(_col, oldToNewMap), cloneNode(_index, oldToNewMap), cloneNode(_value, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link AMapSeqUpdateStmIR} node. * @return a deep clone of this {@link AMapSeqUpdateStmIR} node */ public AMapSeqUpdateStmIR clone() { return new AMapSeqUpdateStmIR( _sourceNode, _tag, _metaData, cloneNode(_col), cloneNode(_index), cloneNode(_value) ); }
SExpIR value = node.getExp(); AMapSeqUpdateStmIR mapSeqUpd = new AMapSeqUpdateStmIR(); mapSeqUpd.setCol(col); mapSeqUpd.setIndex(index.clone());