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