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