/** * Creates a deep clone of this {@link ASetCompSetExp} 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 ASetCompSetExp} node */ public ASetCompSetExp clone(Map<INode,INode> oldToNewMap) { ASetCompSetExp node = new ASetCompSetExp( _type, _location, _setType, cloneNode(_first, oldToNewMap), cloneList(_bindings, oldToNewMap), cloneNode(_predicate, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ASetCompSetExp} node. * @return a deep clone of this {@link ASetCompSetExp} node */ public ASetCompSetExp clone() { return new ASetCompSetExp( _type, _location, _setType, cloneNode(_first), cloneList(_bindings), cloneNode(_predicate) ); }
public static ASetCompSetExp newASetCompSetExp(ILexLocation start, PExp first, List<PMultipleBind> bindings, PExp predicate) { ASetCompSetExp result = new ASetCompSetExp(); initExpression(result, start); result.setFirst(first); result.setBindings(bindings); result.setPredicate(predicate); return result; }
ASetCompSetExp setExp = new ASetCompSetExp(); ASetEnumSetExp setEnumExp = new ASetEnumSetExp(); List<PExp> member = new LinkedList<PExp>();