/** * Sets the name of this import declaration to the given name. * <p> * For a regular on-demand import, this is the name of a package. * For a static on-demand import, this is the qualified name of * a type. For a regular single-type import, this is the qualified name * of a type. For a static single-type import, this is the qualified name * of a static member of a type. * </p> * * @param name the new import 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.importName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.importName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the name of this import declaration to the given name. * <p> * For a regular on-demand import, this is the name of a package. * For a static on-demand import, this is the qualified name of * a type. For a regular single-type import, this is the qualified name * of a type. For a static single-type import, this is the qualified name * of a static member of a type. * </p> * * @param name the new import 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.importName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.importName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the name of this import declaration to the given name. * <p> * For a regular on-demand import, this is the name of a package. * For a static on-demand import, this is the qualified name of * a type. For a regular single-type import, this is the qualified name * of a type. For a static single-type import, this is the qualified name * of a static member of a type. * </p> * * @param name the new import 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.importName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.importName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the name of this import declaration to the given name. * <p> * For a regular on-demand import, this is the name of a package. * For a static on-demand import, this is the qualified name of * a type. For a regular single-type import, this is the qualified name * of a type. For a static single-type import, this is the qualified name * of a static member of a type. * </p> * * @param name the new import 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.importName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.importName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the name of this import declaration to the given name. * <p> * For a regular on-demand import, this is the name of a package. * For a static on-demand import, this is the qualified name of * a type. For a regular single-type import, this is the qualified name * of a type. For a static single-type import, this is the qualified name * of a static member of a type. * </p> * * @param name the new import 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.importName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.importName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the name of this import declaration to the given name. * <p> * For a regular on-demand import, this is the name of a package. * For a static on-demand import, this is the qualified name of * a type. For a regular single-type import, this is the qualified name * of a type. For a static single-type import, this is the qualified name * of a static member of a type. * </p> * * @param name the new import 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.importName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.importName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }