/** * Returns a deep clone of this {@link AApplyExpressionTraceCoreDefinition} node. * @return a deep clone of this {@link AApplyExpressionTraceCoreDefinition} node */ public AApplyExpressionTraceCoreDefinition clone() { return new AApplyExpressionTraceCoreDefinition( _location, cloneNode(_callStatement), _currentModule ); }
/** * Creates a deep clone of this {@link AApplyExpressionTraceCoreDefinition} 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 AApplyExpressionTraceCoreDefinition} node */ public AApplyExpressionTraceCoreDefinition clone(Map<INode,INode> oldToNewMap) { AApplyExpressionTraceCoreDefinition node = new AApplyExpressionTraceCoreDefinition( _location, cloneNode(_callStatement, oldToNewMap), _currentModule ); oldToNewMap.put(this, node); return node; }