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