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