/** * Sets the base type declared in this variable declaration statement to * the given type. * * @param type the new base 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 setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.baseType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.baseType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the base type declared in this variable declaration statement to * the given type. * * @param type the new base 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 setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.baseType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.baseType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the base type declared in this variable declaration statement to * the given type. * * @param type the new base 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 setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.baseType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.baseType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the base type declared in this variable declaration statement to * the given type. * * @param type the new base 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 setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.baseType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.baseType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the base type declared in this variable declaration statement to * the given type. * * @param type the new base 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 setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.baseType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.baseType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }
/** * Sets the base type declared in this variable declaration statement to * the given type. * * @param type the new base 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 setType(Type type) { if (type == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.baseType; preReplaceChild(oldChild, type, TYPE_PROPERTY); this.baseType = type; postReplaceChild(oldChild, type, TYPE_PROPERTY); }