Extension SDK 10.1.3.36.73

javax.ide.model.java.declaration
Interface AnnotationD

All Superinterfaces:
Declaration

public interface AnnotationD
extends Declaration

Represents an annotation (not to be confused with an annotation type).


Nested Class Summary
 
Nested classes inherited from class javax.ide.model.java.declaration.Declaration
Declaration.DeclarationKind
 
Method Summary
 TypeD getAnnotationType()
          Gets the annotation type of this annotation.
 java.util.Map getElements()
          Gets the element-value pairs for this annotation.
 
Methods inherited from interface javax.ide.model.java.declaration.Declaration
getDeclarationKind, getPosition, isSynthetic
 

Method Detail

getAnnotationType

public TypeD getAnnotationType()
Gets the annotation type of this annotation.

Returns:
The type declaration for the annotation type of this annotation.

getElements

public java.util.Map getElements()
Gets the element-value pairs for this annotation.

Returns:
The map of element-value pairs for this annotation. There will be an entry for each declared annotation member. A null value is not legal in the java language, however a null value may be returned here and such would indicate a compile error.

Map keys are String. Map values are Object.

See Also:
MethodD.getDefaultValue()

Extension SDK 10.1.3.36.73

 

Copyright © 1997, 2005, Oracle.All rights reserved.