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