/** * Returns a deep clone of this {@link AMutexSyncDefinition} node. * @return a deep clone of this {@link AMutexSyncDefinition} node */ public AMutexSyncDefinition clone() { return new AMutexSyncDefinition( _location, _name, _nameScope, _used, _classDefinition, cloneNode(_access), _type, _pass, cloneList(_operations) ); }
/** * Creates a deep clone of this {@link AMutexSyncDefinition} 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 AMutexSyncDefinition} node */ public AMutexSyncDefinition clone(Map<INode,INode> oldToNewMap) { AMutexSyncDefinition node = new AMutexSyncDefinition( _location, _name, _nameScope, _used, _classDefinition, cloneNode(_access, oldToNewMap), _type, _pass, cloneList(_operations, oldToNewMap) ); oldToNewMap.put(this, node); return node; }