/** * Creates a new complete constructor {@code ASetBind} 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 set_ the {@link PExp} <b>graph</a> node for the {@code set} child of this {@link ASetBind} node. * <i>The parent of this {@code set } will not be changed by adding it to this node.</i> */ public ASetBind(ILexLocation location_, PPattern pattern_, PExp set_) { super(location_,pattern_); this.setSet(set_); }
public static ASetBind newASetBind(PPattern pattern, PExp readExpression) { ASetBind result = new ASetBind(); result.setLocation(pattern.getLocation()); result.setPattern(pattern); result.setSet(readExpression); return result; }