/** * Creates a new tree field only constructor {@code ASetCompSetExp TAG=setComp} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param first_ the {@link PExp} node for the {@code first} child of this {@link ASetCompSetExp} node * @param bindings_ the {@link NodeList} node for the {@code bindings} child of this {@link ASetCompSetExp} node * @param predicate_ the {@link PExp} node for the {@code predicate} child of this {@link ASetCompSetExp} node */ public ASetCompSetExp(ILexLocation location_, PExp first_, List<? extends PMultipleBind> bindings_, PExp predicate_) { super(null,location_,null); this.setFirst(first_); this.setBindings(bindings_); this.setPredicate(predicate_); }
/** * Creates a new complete constructor {@code ASetCompSetExp} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param first_ the {@link PExp} node for the {@code first} child of this {@link ASetCompSetExp} node * @param bindings_ the {@link NodeList} node for the {@code bindings} child of this {@link ASetCompSetExp} node * @param predicate_ the {@link PExp} node for the {@code predicate} child of this {@link ASetCompSetExp} node */ public ASetCompSetExp(PType type_, ILexLocation location_, SSetType setType_, PExp first_, List<? extends PMultipleBind> bindings_, PExp predicate_) { super(type_,location_,setType_); this.setFirst(first_); this.setBindings(bindings_); this.setPredicate(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; }
setEnumExp.setMembers(member); setExp.setFirst(setEnumExp); setExp.setBindings(cloneListMultipleBind(mapCompExp.getBindings())); if (mapCompExp.getPredicate() != null)