private void internalSetType(Type componentType, ChildPropertyDescriptor property) { ASTNode oldChild = this.type; preReplaceChild(oldChild, componentType, property); this.type = componentType; postReplaceChild(oldChild, componentType, property); }
private void internalSetType(Type componentType, ChildPropertyDescriptor property) { ASTNode oldChild = this.type; preReplaceChild(oldChild, componentType, property); this.type = componentType; postReplaceChild(oldChild, componentType, property); }
private void internalSetType(Type componentType, ChildPropertyDescriptor property) { ASTNode oldChild = this.type; preReplaceChild(oldChild, componentType, property); this.type = componentType; postReplaceChild(oldChild, componentType, property); }
private void internalSetType(Type componentType, ChildPropertyDescriptor property) { ASTNode oldChild = this.type; preReplaceChild(oldChild, componentType, property); this.type = componentType; postReplaceChild(oldChild, componentType, property); }
private void internalSetType(Type componentType, ChildPropertyDescriptor property) { ASTNode oldChild = this.type; preReplaceChild(oldChild, componentType, property); this.type = componentType; postReplaceChild(oldChild, componentType, property); }
/** * Sets the component type of this array type. The component type * may be another array type. * * @param componentType the component type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> */ public void setComponentType(Type componentType) { if (componentType == null) { throw new IllegalArgumentException(); } ASTNode oldChild = this.componentType; preReplaceChild(oldChild, componentType, COMPONENT_TYPE_PROPERTY); this.componentType = componentType; postReplaceChild(oldChild, componentType, COMPONENT_TYPE_PROPERTY); }