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