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