Package org.aspectj.org.eclipse.jdt.core
Schnittstelle IAnnotatable
- Alle bekannten Unterschnittstellen:
AbstractModule
,IField
,ILocalVariable
,IMethod
,IModuleDescription
,IPackageDeclaration
,IType
- Alle bekannten Implementierungsklassen:
AbstractModule.AutoModule
,AssistPackageDeclaration
,AssistSourceField
,AssistSourceMethod
,AssistSourceType
,BinaryLambdaExpression
,BinaryLambdaMethod
,BinaryMethod
,BinaryModule
,BinaryType
,LambdaExpression
,LambdaMethod
,LocalVariable
,PackageDeclaration
,ResolvedBinaryField
,ResolvedBinaryMethod
,ResolvedBinaryType
,ResolvedLambdaExpression
,ResolvedSourceField
,ResolvedSourceMethod
,ResolvedSourceType
,SourceField
,SourceMethod
,SourceModule
,SourceType
public interface IAnnotatable
Common protocol for Java elements that can be annotated.
- Seit:
- 3.4
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAnnotation
(String name) Returns the annotation with the given name declared on this element.Returns the annotations for this element.
-
Methodendetails
-
getAnnotation
Returns the annotation with the given name declared on this element. This is a handle-only method. The annotation may or may not exist.- Parameter:
name
- the given simple name- Gibt zurück:
- the annotation with the given name declared on this element
-
getAnnotations
Returns the annotations for this element. Returns an empty array if this element has no annotations.- Gibt zurück:
- the annotations of this element, in the order declared in the source, or an empty array if none
- Löst aus:
JavaModelException
- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Seit:
- 3.4
-