/** * Sets the qualifier of this "super" method reference expression. * * @param name the qualifier name 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> * </ul> */ public void setQualifier(Name name) { ASTNode oldChild = this.optionalQualifier; preReplaceChild(oldChild, name, QUALIFIER_PROPERTY); this.optionalQualifier = name; postReplaceChild(oldChild, name, QUALIFIER_PROPERTY); }
/** * Sets the qualifier of this "super" method reference expression. * * @param name the qualifier name 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> * </ul> */ public void setQualifier(Name name) { ASTNode oldChild = this.optionalQualifier; preReplaceChild(oldChild, name, QUALIFIER_PROPERTY); this.optionalQualifier = name; postReplaceChild(oldChild, name, QUALIFIER_PROPERTY); }
/** * Sets the name of the method referenced in this expression to the * given name. * * @param name the new method 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.methodName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.methodName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the qualifier of this "super" method reference expression. * * @param name the qualifier name 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> * </ul> */ public void setQualifier(Name name) { ASTNode oldChild = this.optionalQualifier; preReplaceChild(oldChild, name, QUALIFIER_PROPERTY); this.optionalQualifier = name; postReplaceChild(oldChild, name, QUALIFIER_PROPERTY); }
/** * Sets the qualifier of this "super" method reference expression. * * @param name the qualifier name 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> * </ul> */ public void setQualifier(Name name) { ASTNode oldChild = this.optionalQualifier; preReplaceChild(oldChild, name, QUALIFIER_PROPERTY); this.optionalQualifier = name; postReplaceChild(oldChild, name, QUALIFIER_PROPERTY); }
/** * Sets the qualifier of this "super" method reference expression. * * @param name the qualifier name 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> * </ul> */ public void setQualifier(Name name) { ASTNode oldChild = this.optionalQualifier; preReplaceChild(oldChild, name, QUALIFIER_PROPERTY); this.optionalQualifier = name; postReplaceChild(oldChild, name, QUALIFIER_PROPERTY); }
/** * Sets the name of the method referenced in this expression to the * given name. * * @param name the new method 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.methodName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.methodName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the name of the method referenced in this expression to the * given name. * * @param name the new method 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.methodName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.methodName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the name of the method referenced in this expression to the * given name. * * @param name the new method 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.methodName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.methodName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }
/** * Sets the name of the method referenced in this expression to the * given name. * * @param name the new method 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.methodName; preReplaceChild(oldChild, name, NAME_PROPERTY); this.methodName = name; postReplaceChild(oldChild, name, NAME_PROPERTY); }