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