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

org.eclipse.jdt.core
Interface IAnnotatable

All Known Subinterfaces:
IField, ILocalVariable, IMethod, IPackageDeclaration, IType

public interface IAnnotatable

Common protocol for Java elements that can be annotated.

This interface is not intended to be implemented by clients.

Since:
3.4

Method Summary
  IAnnotation getAnnotation ( String name)
          Returns the annotation with the given name declared on this element.
  IAnnotation[] getAnnotations ()
          Returns the annotations for this element.
 

Method Detail

getAnnotation


IAnnotation getAnnotation(
String name)
Returns the annotation with the given name declared on this element. This is a handle-only method. The annotation may or may not exist.

Parameters:
name - the given simple name
Returns:
the annotation with the given name declared on this element

getAnnotations


IAnnotation[] getAnnotations()
                             throws 
JavaModelException
Returns the annotations for this element. Returns an empty array if this element has no annotations.

Returns:
the annotations of this element, in the order declared in the source, or an empty array if none
Throws:
JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource.
Since:
3.4

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