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