/** * Sets or clears the message expression of this assert statement. * * @param expression the message expression node, or <code>null</code> if * there is none * @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 setMessage(Expression expression) { // an AsertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalMessageExpression; preReplaceChild(oldChild, expression, MESSAGE_PROPERTY); this.optionalMessageExpression = expression; postReplaceChild(oldChild, expression, MESSAGE_PROPERTY); }
/** * Sets or clears the message expression of this assert statement. * * @param expression the message expression node, or <code>null</code> if * there is none * @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 setMessage(Expression expression) { // an AsertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalMessageExpression; preReplaceChild(oldChild, expression, MESSAGE_PROPERTY); this.optionalMessageExpression = expression; postReplaceChild(oldChild, expression, MESSAGE_PROPERTY); }
/** * Sets the first expression of this assert 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(); } // an AssertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets or clears the message expression of this assert statement. * * @param expression the message expression node, or <code>null</code> if * there is none * @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 setMessage(Expression expression) { // an AsertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalMessageExpression; preReplaceChild(oldChild, expression, MESSAGE_PROPERTY); this.optionalMessageExpression = expression; postReplaceChild(oldChild, expression, MESSAGE_PROPERTY); }
/** * Sets or clears the message expression of this assert statement. * * @param expression the message expression node, or <code>null</code> if * there is none * @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 setMessage(Expression expression) { // an AsertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalMessageExpression; preReplaceChild(oldChild, expression, MESSAGE_PROPERTY); this.optionalMessageExpression = expression; postReplaceChild(oldChild, expression, MESSAGE_PROPERTY); }
/** * Sets or clears the message expression of this assert statement. * * @param expression the message expression node, or <code>null</code> if * there is none * @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 setMessage(Expression expression) { // an AsertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalMessageExpression; preReplaceChild(oldChild, expression, MESSAGE_PROPERTY); this.optionalMessageExpression = expression; postReplaceChild(oldChild, expression, MESSAGE_PROPERTY); }
/** * Sets the first expression of this assert 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(); } // an AssertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets or clears the message expression of this assert statement. * * @param expression the message expression node, or <code>null</code> if * there is none * @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 setMessage(Expression expression) { // an AsertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalMessageExpression; preReplaceChild(oldChild, expression, MESSAGE_PROPERTY); this.optionalMessageExpression = expression; postReplaceChild(oldChild, expression, MESSAGE_PROPERTY); }
/** * Sets the first expression of this assert 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(); } // an AssertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets the first expression of this assert 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(); } // an AssertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets the first expression of this assert 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(); } // an AssertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }
/** * Sets the first expression of this assert 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(); } // an AssertStatement may occur inside an Expression - must check cycles ASTNode oldChild = this.expression; preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); }