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