/** * Returns a deep clone of this {@link AFuncInstatiationExp} node. * @return a deep clone of this {@link AFuncInstatiationExp} node */ public AFuncInstatiationExp clone() { return new AFuncInstatiationExp( _type, _location, cloneNode(_function), _actualTypes, _expdef, _impdef ); }
/** * Creates a deep clone of this {@link AFuncInstatiationExp} 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 AFuncInstatiationExp} node */ public AFuncInstatiationExp clone(Map<INode,INode> oldToNewMap) { AFuncInstatiationExp node = new AFuncInstatiationExp( _type, _location, cloneNode(_function, oldToNewMap), _actualTypes, _expdef, _impdef ); oldToNewMap.put(this, node); return node; }