/** * Sets whether this enum constant declaration declares * an anonymous class (that is, has class body declarations). * * @param decl the anonymous class declaration, or <code>null</code> * if none */ public void setAnonymousClassDeclaration(AnonymousClassDeclaration decl) { ASTNode oldChild = this.optionalAnonymousClassDeclaration; preReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); this.optionalAnonymousClassDeclaration = decl; postReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); }
/** * Sets whether this enum constant declaration declares * an anonymous class (that is, has class body declarations). * * @param decl the anonymous class declaration, or <code>null</code> * if none */ public void setAnonymousClassDeclaration(AnonymousClassDeclaration decl) { ASTNode oldChild = this.optionalAnonymousClassDeclaration; preReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); this.optionalAnonymousClassDeclaration = decl; postReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); }
/** * Sets whether this enum constant declaration declares * an anonymous class (that is, has class body declarations). * * @param decl the anonymous class declaration, or <code>null</code> * if none */ public void setAnonymousClassDeclaration(AnonymousClassDeclaration decl) { ASTNode oldChild = this.optionalAnonymousClassDeclaration; preReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); this.optionalAnonymousClassDeclaration = decl; postReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); }
/** * Sets whether this enum constant declaration declares * an anonymous class (that is, has class body declarations). * * @param decl the anonymous class declaration, or <code>null</code> * if none */ public void setAnonymousClassDeclaration(AnonymousClassDeclaration decl) { ASTNode oldChild = this.optionalAnonymousClassDeclaration; preReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); this.optionalAnonymousClassDeclaration = decl; postReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); }
/** * Sets whether this enum constant declaration declares * an anonymous class (that is, has class body declarations). * * @param decl the anonymous class declaration, or <code>null</code> * if none */ public void setAnonymousClassDeclaration(AnonymousClassDeclaration decl) { ASTNode oldChild = this.optionalAnonymousClassDeclaration; preReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); this.optionalAnonymousClassDeclaration = decl; postReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); }
/** * Sets whether this enum constant declaration declares * an anonymous class (that is, has class body declarations). * * @param decl the anonymous class declaration, or <code>null</code> * if none */ public void setAnonymousClassDeclaration(AnonymousClassDeclaration decl) { ASTNode oldChild = this.optionalAnonymousClassDeclaration; preReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); this.optionalAnonymousClassDeclaration = decl; postReplaceChild(oldChild, decl, ANONYMOUS_CLASS_DECLARATION_PROPERTY); }
/** * Sets the name of the constant declared in this enum declaration to the * given name. * * @param constantName the new constant 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 constantName) { if (constantName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.constantName; preReplaceChild(oldChild, constantName, NAME_PROPERTY); this.constantName = constantName; postReplaceChild(oldChild, constantName, NAME_PROPERTY); }
/** * Sets the name of the constant declared in this enum declaration to the * given name. * * @param constantName the new constant 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 constantName) { if (constantName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.constantName; preReplaceChild(oldChild, constantName, NAME_PROPERTY); this.constantName = constantName; postReplaceChild(oldChild, constantName, NAME_PROPERTY); }
/** * Sets the name of the constant declared in this enum declaration to the * given name. * * @param constantName the new constant 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 constantName) { if (constantName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.constantName; preReplaceChild(oldChild, constantName, NAME_PROPERTY); this.constantName = constantName; postReplaceChild(oldChild, constantName, NAME_PROPERTY); }
/** * Sets the name of the constant declared in this enum declaration to the * given name. * * @param constantName the new constant 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 constantName) { if (constantName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.constantName; preReplaceChild(oldChild, constantName, NAME_PROPERTY); this.constantName = constantName; postReplaceChild(oldChild, constantName, NAME_PROPERTY); }
/** * Sets the name of the constant declared in this enum declaration to the * given name. * * @param constantName the new constant 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 constantName) { if (constantName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.constantName; preReplaceChild(oldChild, constantName, NAME_PROPERTY); this.constantName = constantName; postReplaceChild(oldChild, constantName, NAME_PROPERTY); }
/** * Sets the name of the constant declared in this enum declaration to the * given name. * * @param constantName the new constant 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 constantName) { if (constantName == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.constantName; preReplaceChild(oldChild, constantName, NAME_PROPERTY); this.constantName = constantName; postReplaceChild(oldChild, constantName, NAME_PROPERTY); }