|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.BodyDeclaration
org.eclipse.jdt.core.dom.AbstractTypeDeclaration
org.eclipse.jdt.core.dom.AnnotationTypeDeclaration
public class AnnotationTypeDeclaration
Annotation type declaration AST node type (added in JLS3 API).
AnnotationTypeDeclaration:
[ Javadoc ] { ExtendedModifier } @ interface Identifier
{ { AnnotationTypeBodyDeclaration | ; } }
AnnotationTypeBodyDeclaration:
AnnotationTypeMemberDeclaration
FieldDeclaration
TypeDeclaration
EnumDeclaration
AnnotationTypeDeclaration
The thing to note is that method declaration are replaced by annotation type member declarations in this context.
When a Javadoc comment is present, the source range begins with the first character of the "/**" comment delimiter. When there is no Javadoc comment, the source range begins with the first character of the first modifier keyword (if modifiers), or the first character of the "@interface" (if no modifiers). The source range extends through the last character of the "}" token following the body declarations.
| Field Summary | |
|---|---|
static ChildListPropertyDescriptor |
BODY_DECLARATIONS_PROPERTY
The "bodyDeclarations" structural property of this node type (element type: BodyDeclaration). |
static ChildPropertyDescriptor |
JAVADOC_PROPERTY
The "javadoc" structural property of this node type (child type: Javadoc). |
static ChildListPropertyDescriptor |
MODIFIERS2_PROPERTY
The "modifiers" structural property of this node type (element type: IExtendedModifier). |
static ChildPropertyDescriptor |
NAME_PROPERTY
The "name" structural property of this node type (child type: SimpleName). |
| Method Summary | |
|---|---|
static List |
propertyDescriptors(int apiLevel)
Returns a list of structural property descriptors for this node type. |
| Methods inherited from class org.eclipse.jdt.core.dom.AbstractTypeDeclaration |
|---|
bodyDeclarations, getBodyDeclarationsProperty, getName, getNameProperty, isLocalTypeDeclaration, isMemberTypeDeclaration, isPackageMemberTypeDeclaration, resolveBinding, setName |
| Methods inherited from class org.eclipse.jdt.core.dom.BodyDeclaration |
|---|
getJavadoc, getJavadocProperty, getModifiers, getModifiersProperty, modifiers, setJavadoc, setModifiers |
| Methods inherited from class org.eclipse.jdt.core.dom.ASTNode |
|---|
accept, copySubtree, copySubtrees, delete, equals, getAST, getFlags, getLength, getLocationInParent, getNodeType, getParent, getProperty, getRoot, getStartPosition, getStructuralProperty, hashCode, nodeClassForType, properties, setFlags, setProperty, setSourceRange, setStructuralProperty, structuralPropertiesForType, subtreeBytes, subtreeMatch, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ChildPropertyDescriptor JAVADOC_PROPERTY
Javadoc).
public static final ChildListPropertyDescriptor MODIFIERS2_PROPERTY
IExtendedModifier).
public static final ChildPropertyDescriptor NAME_PROPERTY
SimpleName).
public static final ChildListPropertyDescriptor BODY_DECLARATIONS_PROPERTY
BodyDeclaration).
| Method Detail |
|---|
public static List propertyDescriptors(int apiLevel)
apiLevel - the API level; one of the
AST.JLS* constants
StructuralPropertyDescriptor)
|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.