/** * Creates a deep clone of this {@link AStartStmIR} 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 AStartStmIR} node */ public AStartStmIR clone(Map<INode,INode> oldToNewMap) { AStartStmIR node = new AStartStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp, oldToNewMap), cloneNode(_type, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link AStartStmIR} node. * @return a deep clone of this {@link AStartStmIR} node */ public AStartStmIR clone() { return new AStartStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp), cloneNode(_type) ); }
SExpIR expIR = exp.apply(question.getExpVisitor(), question); AStartStmIR thread = new AStartStmIR(); thread.setType(typeIR); thread.setExp(expIR);