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