/** * Sets the package name of this package declaration to the given name. * * @param name the new package 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(Name name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.packageName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.packageName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the package name of this package declaration to the given name. * * @param name the new package 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(Name name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.packageName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.packageName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the package name of this package declaration to the given name. * * @param name the new package 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(Name name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.packageName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.packageName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the package name of this package declaration to the given name. * * @param name the new package 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(Name name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.packageName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.packageName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the package name of this package declaration to the given name. * * @param name the new package 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(Name name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.packageName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.packageName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the package name of this package declaration to the given name. * * @param name the new package 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(Name name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.packageName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.packageName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets or clears the doc comment node (added in JLS3 API). * * @param docComment the doc comment node, or <code>null</code> if none * @exception IllegalArgumentException if the doc comment string is invalid * @exception UnsupportedOperationException if this operation is used in * a JLS2 AST * @since 3.0 */ public void setJavadoc(Javadoc docComment) { // more efficient than just calling unsupportedIn2() to check if (this.annotations == null) { unsupportedIn2(); } ASTNode oldChild = this.optionalDocComment; preReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); this.optionalDocComment = docComment; postReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); }
/** * Sets or clears the doc comment node (added in JLS3 API). * * @param docComment the doc comment node, or <code>null</code> if none * @exception IllegalArgumentException if the doc comment string is invalid * @exception UnsupportedOperationException if this operation is used in * a JLS2 AST * @since 3.0 */ public void setJavadoc(Javadoc docComment) { // more efficient than just calling unsupportedIn2() to check if (this.annotations == null) { unsupportedIn2(); } ASTNode oldChild = this.optionalDocComment; preReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); this.optionalDocComment = docComment; postReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); }
/** * Sets or clears the doc comment node (added in JLS3 API). * * @param docComment the doc comment node, or <code>null</code> if none * @exception IllegalArgumentException if the doc comment string is invalid * @exception UnsupportedOperationException if this operation is used in * a JLS2 AST * @since 3.0 */ public void setJavadoc(Javadoc docComment) { // more efficient than just calling unsupportedIn2() to check if (this.annotations == null) { unsupportedIn2(); } ASTNode oldChild = this.optionalDocComment; preReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); this.optionalDocComment = docComment; postReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); }
/** * Sets or clears the doc comment node (added in JLS3 API). * * @param docComment the doc comment node, or <code>null</code> if none * @exception IllegalArgumentException if the doc comment string is invalid * @exception UnsupportedOperationException if this operation is used in * a JLS2 AST * @since 3.0 */ public void setJavadoc(Javadoc docComment) { // more efficient than just calling unsupportedIn2() to check if (this.annotations == null) { unsupportedIn2(); } ASTNode oldChild = this.optionalDocComment; preReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); this.optionalDocComment = docComment; postReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); }
/** * Sets or clears the doc comment node (added in JLS3 API). * * @param docComment the doc comment node, or <code>null</code> if none * @exception IllegalArgumentException if the doc comment string is invalid * @exception UnsupportedOperationException if this operation is used in * a JLS2 AST * @since 3.0 */ public void setJavadoc(Javadoc docComment) { // more efficient than just calling unsupportedIn2() to check if (this.annotations == null) { unsupportedIn2(); } ASTNode oldChild = this.optionalDocComment; preReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); this.optionalDocComment = docComment; postReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); }
/** * Sets or clears the doc comment node. * * @param docComment the doc comment node, or <code>null</code> if none * @exception IllegalArgumentException if the doc comment string is invalid * @exception UnsupportedOperationException if this operation is used in * a JLS2 AST * @since 3.0 */ public void setJavadoc(Javadoc docComment) { // more efficient than just calling unsupportedIn2() to check if (this.annotations == null) { unsupportedIn2(); } ASTNode oldChild = this.optionalDocComment; preReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); this.optionalDocComment = docComment; postReplaceChild(oldChild, docComment, JAVADOC_PROPERTY); }