/** * 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); }
/** * Returns the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @return the type declaration node * @since 3.1 */ public AbstractTypeDeclaration getDeclaration() { if (this.typeDecl == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeDecl == null) { preLazyInit(); this.typeDecl = new TypeDeclaration(this.ast); postLazyInit(this.typeDecl, typeDeclProperty()); } } } return this.typeDecl; }
/** * Returns the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @return the type declaration node * @since 3.1 */ public AbstractTypeDeclaration getDeclaration() { if (this.typeDecl == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeDecl == null) { preLazyInit(); this.typeDecl = new TypeDeclaration(this.ast); postLazyInit(this.typeDecl, typeDeclProperty()); } } } return this.typeDecl; }
/** * Returns the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @return the type declaration node * @since 3.1 */ public AbstractTypeDeclaration getDeclaration() { if (this.typeDecl == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeDecl == null) { preLazyInit(); this.typeDecl = new TypeDeclaration(this.ast); postLazyInit(this.typeDecl, typeDeclProperty()); } } } return this.typeDecl; }
/** * Returns the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @return the type declaration node * @since 3.1 */ public AbstractTypeDeclaration getDeclaration() { if (this.typeDecl == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeDecl == null) { preLazyInit(); this.typeDecl = new TypeDeclaration(this.ast); postLazyInit(this.typeDecl, typeDeclProperty()); } } } return this.typeDecl; }
/** * Returns the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @return the type declaration node * @since 3.1 */ public AbstractTypeDeclaration getDeclaration() { if (this.typeDecl == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeDecl == null) { preLazyInit(); this.typeDecl = new TypeDeclaration(this.ast); postLazyInit(this.typeDecl, typeDeclProperty()); } } } return this.typeDecl; }
/** * Returns the abstract type declaration of this local type declaration * statement (added in JLS3 API). * * @return the type declaration node * @since 3.1 */ public AbstractTypeDeclaration getDeclaration() { if (this.typeDecl == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeDecl == null) { preLazyInit(); this.typeDecl = new TypeDeclaration(this.ast); postLazyInit(this.typeDecl, typeDeclProperty()); } } } return this.typeDecl; }