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