Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse JDT
Release 3.5

com.sun.mirror.declaration
Interface AnnotationMirror


public interface AnnotationMirror

Represents an annotation. An annotation associates a value with each element of an annotation type.

Annotations should not be compared using reference-equality ("=="). There is no guarantee that any particular annotation will always be represented by the same object.

Since:
1.5

Method Summary
  AnnotationType getAnnotationType ()
          Returns the annotation type of this annotation.
  Map< AnnotationTypeElementDeclaration, AnnotationValue> getElementValues ()
          Returns this annotation's elements and their values.
  SourcePosition getPosition ()
          Returns the source position of the beginning of this annotation.
 

Method Detail

getAnnotationType


AnnotationType getAnnotationType()
Returns the annotation type of this annotation.

Returns:
the annotation type of this annotation

getPosition


SourcePosition getPosition()
Returns the source position of the beginning of this annotation. Returns null if the position is unknown or not applicable.

This source position is intended for use in providing diagnostics, and indicates only approximately where an annotation begins.

Returns:
the source position of the beginning of this annotation or null if the position is unknown or not applicable

getElementValues


Map<
AnnotationTypeElementDeclaration,
AnnotationValue> getElementValues()
Returns this annotation's elements and their values. This is returned in the form of a map that associates elements with their corresponding values. Only those elements and values explicitly present in the annotation are included, not those that are implicitly assuming their default values. The order of the map matches the order in which the elements appear in the annotation's source.

Returns:
this annotation's elements and their values, or an empty map if there are none

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire