Class BodyDeclaration

java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTNode
org.aspectj.org.eclipse.jdt.core.dom.BodyDeclaration
Direct Known Subclasses:
AbstractUnnamedTypeDeclaration, AdviceDeclaration, AnnotationTypeMemberDeclaration, DeclareDeclaration, EnumConstantDeclaration, FieldDeclaration, Initializer, MethodDeclaration, PointcutDeclaration

public abstract class BodyDeclaration extends ASTNode
Abstract base class of all AST nodes that represent body declarations that may appear in the body of some kind of class or interface declaration, including anonymous class declarations, enumeration declarations, and enumeration constant declarations.
 BodyDeclaration:
                AbstractTypeDeclaration
                        AnnotationTypeDeclaration
                        EnumDeclaration
                        TypeDeclaration (for classes and interfaces)
                AnnotationTypeMemberDeclaration
                EnumConstantDeclaration
                FieldDeclaration
                Initializer
                MethodDeclaration (for methods and constructors)
 

All types of body declarations carry modifiers (and annotations), although they differ in which modifiers are allowed. Most types of body declarations can carry a doc comment; Initializer is the only ones that does not. The source range for body declarations always includes the doc comment if present.

Since:
2.0