/** * Sets the formal parameter in this enhanced for statement. * * @param parameter the new parameter * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setParameter(SingleVariableDeclaration parameter) { if (parameter == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.parameter; preReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); this.parameter = parameter; postReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); }
/** * Sets the formal parameter in this enhanced for statement. * * @param parameter the new parameter * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setParameter(SingleVariableDeclaration parameter) { if (parameter == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.parameter; preReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); this.parameter = parameter; postReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); }
/** * Sets the body of this enhanced for statement. * * @param statement the body statement node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setBody(Statement statement) { if (statement == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.body; preReplaceChild(oldChild, statement, BODY_PROPERTY); this.body = statement; postReplaceChild(oldChild, statement, BODY_PROPERTY); }
/** * Sets the body of this enhanced for statement. * * @param statement the body statement node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setBody(Statement statement) { if (statement == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.body; preReplaceChild(oldChild, statement, BODY_PROPERTY); this.body = statement; postReplaceChild(oldChild, statement, BODY_PROPERTY); }
/** * Sets the expression of this enhanced for statement. * * @param expression the new expression node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets the expression of this enhanced for statement. * * @param expression the new expression node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets the formal parameter in this enhanced for statement. * * @param parameter the new parameter * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setParameter(SingleVariableDeclaration parameter) { if (parameter == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.parameter; preReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); this.parameter = parameter; postReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); }
/** * Sets the expression of this enhanced for statement. * * @param expression the new expression node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets the formal parameter in this enhanced for statement. * * @param parameter the new parameter * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setParameter(SingleVariableDeclaration parameter) { if (parameter == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.parameter; preReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); this.parameter = parameter; postReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); }
/** * Sets the body of this enhanced for statement. * * @param statement the body statement node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setBody(Statement statement) { if (statement == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.body; preReplaceChild(oldChild, statement, BODY_PROPERTY); this.body = statement; postReplaceChild(oldChild, statement, BODY_PROPERTY); }
/** * Sets the body of this enhanced for statement. * * @param statement the body statement node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setBody(Statement statement) { if (statement == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.body; preReplaceChild(oldChild, statement, BODY_PROPERTY); this.body = statement; postReplaceChild(oldChild, statement, BODY_PROPERTY); }
/** * Sets the formal parameter in this enhanced for statement. * * @param parameter the new parameter * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setParameter(SingleVariableDeclaration parameter) { if (parameter == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.parameter; preReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); this.parameter = parameter; postReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); }
/** * Sets the formal parameter in this enhanced for statement. * * @param parameter the new parameter * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setParameter(SingleVariableDeclaration parameter) { if (parameter == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.parameter; preReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); this.parameter = parameter; postReplaceChild(oldChild, parameter, PARAMETER_PROPERTY); }
/** * Sets the body of this enhanced for statement. * * @param statement the body statement node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setBody(Statement statement) { if (statement == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.body; preReplaceChild(oldChild, statement, BODY_PROPERTY); this.body = statement; postReplaceChild(oldChild, statement, BODY_PROPERTY); }
/** * Sets the expression of this enhanced for statement. * * @param expression the new expression node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets the expression of this enhanced for statement. * * @param expression the new expression node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets the body of this enhanced for statement. * * @param statement the body statement node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setBody(Statement statement) { if (statement == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.body; preReplaceChild(oldChild, statement, BODY_PROPERTY); this.body = statement; postReplaceChild(oldChild, statement, BODY_PROPERTY); }
/** * Sets the expression of this enhanced for statement. * * @param expression the new expression node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }