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