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