/** * Creates a deep clone of this {@link ADurationStm} 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 ADurationStm} node */ public ADurationStm clone(Map<INode,INode> oldToNewMap) { ADurationStm node = new ADurationStm( _location, _type, cloneNode(_duration, oldToNewMap), cloneNode(_statement, oldToNewMap), _step ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ADurationStm} node. * @return a deep clone of this {@link ADurationStm} node */ public ADurationStm clone() { return new ADurationStm( _location, _type, cloneNode(_duration), cloneNode(_statement), _step ); }
public static ADurationStm newADurationStm(ILexLocation location, PExp duration, PStm stmt) { ADurationStm result = new ADurationStm(); initStatement(result, location); result.setDuration(duration); result.setStatement(stmt); return result; }