/** * Sets the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @param decl the type declaration node * @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> * @since 3.1 */ public void setDeclaration(AbstractTypeDeclaration decl) { if (decl == null) { throw new IllegalArgumentException(); } // a TypeDeclarationStatement may occur inside an // TypeDeclaration - must check cycles ASTNode oldChild = this.typeDecl; ChildPropertyDescriptor typeDeclProperty = typeDeclProperty(); preReplaceChild(oldChild, decl, typeDeclProperty); this.typeDecl= decl; postReplaceChild(oldChild, decl, typeDeclProperty); }
/** * Sets the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @param decl the type declaration node * @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> * @since 3.1 */ public void setDeclaration(AbstractTypeDeclaration decl) { if (decl == null) { throw new IllegalArgumentException(); } // a TypeDeclarationStatement may occur inside an // TypeDeclaration - must check cycles ASTNode oldChild = this.typeDecl; ChildPropertyDescriptor typeDeclProperty = typeDeclProperty(); preReplaceChild(oldChild, decl, typeDeclProperty); this.typeDecl= decl; postReplaceChild(oldChild, decl, typeDeclProperty); }
/** * Sets the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @param decl the type declaration node * @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> * @since 3.1 */ public void setDeclaration(AbstractTypeDeclaration decl) { if (decl == null) { throw new IllegalArgumentException(); } // a TypeDeclarationStatement may occur inside an // TypeDeclaration - must check cycles ASTNode oldChild = this.typeDecl; ChildPropertyDescriptor typeDeclProperty = typeDeclProperty(); preReplaceChild(oldChild, decl, typeDeclProperty); this.typeDecl= decl; postReplaceChild(oldChild, decl, typeDeclProperty); }
/** * Sets the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @param decl the type declaration node * @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> * @since 3.1 */ public void setDeclaration(AbstractTypeDeclaration decl) { if (decl == null) { throw new IllegalArgumentException(); } // a TypeDeclarationStatement may occur inside an // TypeDeclaration - must check cycles ASTNode oldChild = this.typeDecl; ChildPropertyDescriptor typeDeclProperty = typeDeclProperty(); preReplaceChild(oldChild, decl, typeDeclProperty); this.typeDecl= decl; postReplaceChild(oldChild, decl, typeDeclProperty); }
/** * Sets the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @param decl the type declaration node * @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> * @since 3.1 */ public void setDeclaration(AbstractTypeDeclaration decl) { if (decl == null) { throw new IllegalArgumentException(); } // a TypeDeclarationStatement may occur inside an // TypeDeclaration - must check cycles ASTNode oldChild = this.typeDecl; ChildPropertyDescriptor typeDeclProperty = typeDeclProperty(); preReplaceChild(oldChild, decl, typeDeclProperty); this.typeDecl= decl; postReplaceChild(oldChild, decl, typeDeclProperty); }
/** * Sets the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @param decl the type declaration node * @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> * @since 3.1 */ public void setDeclaration(AbstractTypeDeclaration decl) { if (decl == null) { throw new IllegalArgumentException(); } // a TypeDeclarationStatement may occur inside an // TypeDeclaration - must check cycles ASTNode oldChild = this.typeDecl; ChildPropertyDescriptor typeDeclProperty = typeDeclProperty(); preReplaceChild(oldChild, decl, typeDeclProperty); this.typeDecl= decl; postReplaceChild(oldChild, decl, typeDeclProperty); }