/** * Sets or clears the default value of this annotation type member. * * @param defaultValue the 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 setDefault(Expression defaultValue) { // a AnnotationTypeMemberDeclaration may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalDefaultValue; preReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); this.optionalDefaultValue = defaultValue; postReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); }
/** * Sets or clears the default value of this annotation type member. * * @param defaultValue the 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 setDefault(Expression defaultValue) { // a AnnotationTypeMemberDeclaration may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalDefaultValue; preReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); this.optionalDefaultValue = defaultValue; postReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); }
/** * Sets the name of the annotation type member declared in this declaration to the * given name. * * @param memberName the new member name * @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 memberName) { if (memberName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberName; preReplaceChild(oldChild, memberName, NAME_PROPERTY); this.memberName = memberName; postReplaceChild(oldChild, memberName, NAME_PROPERTY); }
/** * Sets the name of the annotation type member declared in this declaration to the * given name. * * @param memberName the new member name * @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 memberName) { if (memberName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberName; preReplaceChild(oldChild, memberName, NAME_PROPERTY); this.memberName = memberName; postReplaceChild(oldChild, memberName, NAME_PROPERTY); }
/** * Sets or clears the default value of this annotation type member. * * @param defaultValue the 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 setDefault(Expression defaultValue) { // a AnnotationTypeMemberDeclaration may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalDefaultValue; preReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); this.optionalDefaultValue = defaultValue; postReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); }
/** * Sets the type of the annotation type member declared in this declaration * to the given type. * * @param type the new member type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.memberType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the name of the annotation type member declared in this declaration to the * given name. * * @param memberName the new member name * @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 memberName) { if (memberName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberName; preReplaceChild(oldChild, memberName, NAME_PROPERTY); this.memberName = memberName; postReplaceChild(oldChild, memberName, NAME_PROPERTY); }
/** * Sets the type of the annotation type member declared in this declaration * to the given type. * * @param type the new member type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.memberType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the name of the annotation type member declared in this declaration to the * given name. * * @param memberName the new member name * @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 memberName) { if (memberName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberName; preReplaceChild(oldChild, memberName, NAME_PROPERTY); this.memberName = memberName; postReplaceChild(oldChild, memberName, NAME_PROPERTY); }
/** * Sets the type of the annotation type member declared in this declaration * to the given type. * * @param type the new member type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.memberType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the name of the annotation type member declared in this declaration to the * given name. * * @param memberName the new member name * @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 memberName) { if (memberName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberName; preReplaceChild(oldChild, memberName, NAME_PROPERTY); this.memberName = memberName; postReplaceChild(oldChild, memberName, NAME_PROPERTY); }
/** * Sets the type of the annotation type member declared in this declaration * to the given type. * * @param type the new member type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.memberType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets or clears the default value of this annotation type member. * * @param defaultValue the 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 setDefault(Expression defaultValue) { // a AnnotationTypeMemberDeclaration may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalDefaultValue; preReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); this.optionalDefaultValue = defaultValue; postReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); }
/** * Sets or clears the default value of this annotation type member. * * @param defaultValue the 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 setDefault(Expression defaultValue) { // a AnnotationTypeMemberDeclaration may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalDefaultValue; preReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); this.optionalDefaultValue = defaultValue; postReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); }
/** * Sets the name of the annotation type member declared in this declaration to the * given name. * * @param memberName the new member name * @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 memberName) { if (memberName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberName; preReplaceChild(oldChild, memberName, NAME_PROPERTY); this.memberName = memberName; postReplaceChild(oldChild, memberName, NAME_PROPERTY); }
/** * Sets or clears the default value of this annotation type member. * * @param defaultValue the 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 setDefault(Expression defaultValue) { // a AnnotationTypeMemberDeclaration may occur inside an Expression - must check cycles ASTNode oldChild = this.optionalDefaultValue; preReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); this.optionalDefaultValue = defaultValue; postReplaceChild(oldChild, defaultValue, DEFAULT_PROPERTY); }
/** * Sets the type of the annotation type member declared in this declaration * to the given type. * * @param type the new member type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.memberType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the type of the annotation type member declared in this declaration * to the given type. * * @param type the new member type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * </ul> */ public void setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.memberType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.memberType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }