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