/** * Creates a deep clone of this {@link AApplyExp} 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 AApplyExp} node */ public AApplyExp clone(Map<INode,INode> oldToNewMap) { AApplyExp node = new AApplyExp( _type, _location, cloneNode(_root, oldToNewMap), cloneList(_args, oldToNewMap), _argtypes, _recursive ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link AApplyExp} node. * @return a deep clone of this {@link AApplyExp} node */ public AApplyExp clone() { return new AApplyExp( _type, _location, cloneNode(_root), cloneList(_args), _argtypes, _recursive ); }