/** * Creates a deep clone of this {@link AEqRelation} 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 AEqRelation} node */ public AEqRelation clone(Map<INode,INode> oldToNewMap) { AEqRelation node = new AEqRelation( _location, cloneNode(_lhsPattern, oldToNewMap), cloneNode(_rhsPattern, oldToNewMap), cloneNode(_relExp, oldToNewMap), cloneNode(_relDef, oldToNewMap) ); oldToNewMap.put(this, node); return node; }