/** * Creates a deep clone of this {@link ASetRangeSetExp} 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 ASetRangeSetExp} node */ public ASetRangeSetExp clone(Map<INode,INode> oldToNewMap) { ASetRangeSetExp node = new ASetRangeSetExp( _type, _location, _setType, cloneNode(_first, oldToNewMap), cloneNode(_last, oldToNewMap), _ftype, _ltype ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ASetRangeSetExp} node. * @return a deep clone of this {@link ASetRangeSetExp} node */ public ASetRangeSetExp clone() { return new ASetRangeSetExp( _type, _location, _setType, cloneNode(_first), cloneNode(_last), _ftype, _ltype ); }
public static ASetRangeSetExp newASetRangeSetExp(ILexLocation start, PExp first, PExp last) { ASetRangeSetExp result = new ASetRangeSetExp(); initExpression(result, start); result.setFirst(first); result.setLast(last); return result; }