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