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