/** * Sets the qualifier of this qualified type to the given type. * * @param type the new qualifier of this qualified 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 setQualifier(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.qualifier; preReplaceChild(oldChild, type, QUALIFIER_PROPERTY); this.qualifier = type; postReplaceChild(oldChild, type, QUALIFIER_PROPERTY); }
/** * Sets the name part of this qualified type to the given simple name. * * @param name the identifier of this qualified 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 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 qualifier of this qualified type to the given type. * * @param type the new qualifier of this qualified 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 setQualifier(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.qualifier; preReplaceChild(oldChild, type, QUALIFIER_PROPERTY); this.qualifier = type; postReplaceChild(oldChild, type, QUALIFIER_PROPERTY); }
/** * Sets the qualifier of this qualified type to the given type. * * @param type the new qualifier of this qualified 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 setQualifier(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.qualifier; preReplaceChild(oldChild, type, QUALIFIER_PROPERTY); this.qualifier = type; postReplaceChild(oldChild, type, QUALIFIER_PROPERTY); }
/** * Sets the name part of this qualified type to the given simple name. * * @param name the identifier of this qualified 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 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 qualifier of this qualified type to the given type. * * @param type the new qualifier of this qualified 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 setQualifier(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.qualifier; preReplaceChild(oldChild, type, QUALIFIER_PROPERTY); this.qualifier = type; postReplaceChild(oldChild, type, QUALIFIER_PROPERTY); }
/** * Sets the qualifier of this qualified type to the given type. * * @param type the new qualifier of this qualified 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 setQualifier(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.qualifier; preReplaceChild(oldChild, type, QUALIFIER_PROPERTY); this.qualifier = type; postReplaceChild(oldChild, type, QUALIFIER_PROPERTY); }
/** * Sets the name part of this qualified type to the given simple name. * * @param name the identifier of this qualified 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 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 qualifier of this qualified type to the given type. * * @param type the new qualifier of this qualified 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 setQualifier(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.qualifier; preReplaceChild(oldChild, type, QUALIFIER_PROPERTY); this.qualifier = type; postReplaceChild(oldChild, type, QUALIFIER_PROPERTY); }
/** * Sets the name part of this qualified type to the given simple name. * * @param name the identifier of this qualified 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 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 name part of this qualified type to the given simple name. * * @param name the identifier of this qualified 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 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 name part of this qualified type to the given simple name. * * @param name the identifier of this qualified 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 name) { if (name == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.name; preReplaceChild(oldChild, name, NAME_PROPERTY); this.name = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }