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