/** * Sets the member name. * * @param name the member name node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setName(SimpleName name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.name; preReplaceChild(oldChild, name, NAME_PROPERTY); this.name = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the value of this pair. * * @param value the new value * @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 setValue(Expression value) { if (value == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.value; preReplaceChild(oldChild, value, VALUE_PROPERTY); this.value = value; postReplaceChild(oldChild, value, VALUE_PROPERTY); }
/** * Sets the member name. * * @param name the member name node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setName(SimpleName name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.name; preReplaceChild(oldChild, name, NAME_PROPERTY); this.name = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the value of this pair. * * @param value the new value * @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 setValue(Expression value) { if (value == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.value; preReplaceChild(oldChild, value, VALUE_PROPERTY); this.value = value; postReplaceChild(oldChild, value, VALUE_PROPERTY); }
/** * Sets the member name. * * @param name the member name node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setName(SimpleName name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.name; preReplaceChild(oldChild, name, NAME_PROPERTY); this.name = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the member name. * * @param name the member name node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setName(SimpleName name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.name; preReplaceChild(oldChild, name, NAME_PROPERTY); this.name = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the member name. * * @param name the member name node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setName(SimpleName name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.name; preReplaceChild(oldChild, name, NAME_PROPERTY); this.name = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the member name. * * @param name the member name node * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setName(SimpleName name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.name; preReplaceChild(oldChild, name, NAME_PROPERTY); this.name = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the value of this pair. * * @param value the new value * @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 setValue(Expression value) { if (value == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.value; preReplaceChild(oldChild, value, VALUE_PROPERTY); this.value = value; postReplaceChild(oldChild, value, VALUE_PROPERTY); }
/** * Sets the value of this pair. * * @param value the new value * @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 setValue(Expression value) { if (value == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.value; preReplaceChild(oldChild, value, VALUE_PROPERTY); this.value = value; postReplaceChild(oldChild, value, VALUE_PROPERTY); }
/** * Sets the value of this pair. * * @param value the new value * @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 setValue(Expression value) { if (value == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.value; preReplaceChild(oldChild, value, VALUE_PROPERTY); this.value = value; postReplaceChild(oldChild, value, VALUE_PROPERTY); }
/** * Sets the value of this pair. * * @param value the new value * @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 setValue(Expression value) { if (value == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.value; preReplaceChild(oldChild, value, VALUE_PROPERTY); this.value = value; postReplaceChild(oldChild, value, VALUE_PROPERTY); }