/** * Sets loop increment expression, and sets its parent to * this node. * @param increment loop increment expression. Pass an * {@link EmptyExpression} if increment is {@code null}. * @throws IllegalArgumentException} if increment is {@code null} */ public void setIncrement(AstNode increment) { assertNotNull(increment); this.increment = increment; increment.setParent(this); }
/** * Sets loop condition, and sets its parent to this node. * @param condition loop condition. Pass an {@link EmptyExpression} * if the condition is missing. * @throws IllegalArgumentException} if condition is {@code null} */ public void setCondition(AstNode condition) { assertNotNull(condition); this.condition = condition; condition.setParent(this); }
/** * Sets loop condition, and sets its parent to this node. * @param condition loop condition. Pass an {@link EmptyExpression} * if the condition is missing. * @throws IllegalArgumentException} if condition is {@code null} */ public void setCondition(AstNode condition) { assertNotNull(condition); this.condition = condition; condition.setParent(this); }
/** * Sets loop condition, and sets its parent to this node. * @param condition loop condition. Pass an {@link EmptyExpression} * if the condition is missing. * @throws IllegalArgumentException} if condition is {@code null} */ public void setCondition(AstNode condition) { assertNotNull(condition); this.condition = condition; condition.setParent(this); }
/** * Sets loop initializer expression, and sets its parent * to this node. Virtually any expression can be in the initializer, * so no error-checking is done other than a {@code null}-check. * @param initializer loop initializer. Pass an * {@link EmptyExpression} if the initializer is not specified. * @throws IllegalArgumentException if condition is {@code null} */ public void setInitializer(AstNode initializer) { assertNotNull(initializer); this.initializer = initializer; initializer.setParent(this); }
/** * Sets loop condition, and sets its parent to this node. * @param condition loop condition. Pass an {@link EmptyExpression} * if the condition is missing. * @throws IllegalArgumentException} if condition is {@code null} */ public void setCondition(AstNode condition) { assertNotNull(condition); this.condition = condition; condition.setParent(this); }
/** * Sets loop increment expression, and sets its parent to * this node. * @param increment loop increment expression. Pass an * {@link EmptyExpression} if increment is {@code null}. * @throws IllegalArgumentException} if increment is {@code null} */ public void setIncrement(AstNode increment) { assertNotNull(increment); this.increment = increment; increment.setParent(this); }
/** * Sets loop increment expression, and sets its parent to * this node. * @param increment loop increment expression. Pass an * {@link EmptyExpression} if increment is {@code null}. * @throws IllegalArgumentException} if increment is {@code null} */ public void setIncrement(AstNode increment) { assertNotNull(increment); this.increment = increment; increment.setParent(this); }
/** * Sets loop increment expression, and sets its parent to * this node. * @param increment loop increment expression. Pass an * {@link EmptyExpression} if increment is {@code null}. * @throws IllegalArgumentException} if increment is {@code null} */ public void setIncrement(AstNode increment) { assertNotNull(increment); this.increment = increment; increment.setParent(this); }
/** * Sets loop initializer expression, and sets its parent * to this node. Virtually any expression can be in the initializer, * so no error-checking is done other than a {@code null}-check. * @param initializer loop initializer. Pass an * {@link EmptyExpression} if the initializer is not specified. * @throws IllegalArgumentException if condition is {@code null} */ public void setInitializer(AstNode initializer) { assertNotNull(initializer); this.initializer = initializer; initializer.setParent(this); }
/** * Sets loop initializer expression, and sets its parent * to this node. Virtually any expression can be in the initializer, * so no error-checking is done other than a {@code null}-check. * @param initializer loop initializer. Pass an * {@link EmptyExpression} if the initializer is not specified. * @throws IllegalArgumentException if condition is {@code null} */ public void setInitializer(AstNode initializer) { assertNotNull(initializer); this.initializer = initializer; initializer.setParent(this); }
/** * Sets loop initializer expression, and sets its parent * to this node. Virtually any expression can be in the initializer, * so no error-checking is done other than a {@code null}-check. * @param initializer loop initializer. Pass an * {@link EmptyExpression} if the initializer is not specified. * @throws IllegalArgumentException if condition is {@code null} */ public void setInitializer(AstNode initializer) { assertNotNull(initializer); this.initializer = initializer; initializer.setParent(this); }