|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jpt.common.core.GenericAnnotationProvider
public final class GenericAnnotationProvider
Implementation of AnnotationProvider that is constructed with an array of AnnotationDefinitions and NestableAnnotationDefinitions An AnnotationDefinition is needed if the annotation is only a stand-alone top-level annotation A NestableAnnotationDeifnition is needed if the annotation can be either stand-alone or nested within a container annotation. A *Definition is not needed if the annotation is only ever nested within another annotation.
JavaResourceAnnotatedElement,
AnnotationDefinition,
Delegate to annotation definition providers.
The platform factory will build an instance of this annotation provider,
passing in the appropriate array of annotation definition providers necessary
to build the annotations for the platform (vendor and/or version).| Constructor Summary | |
|---|---|
GenericAnnotationProvider(AnnotationDefinition[] annotationDefinitions,
NestableAnnotationDefinition[] nestableAnnotationDefinitions)
|
|
| Method Summary | |
|---|---|
Annotation |
buildAnnotation(JavaResourceAnnotatedElement parent,
AnnotatedElement element,
String annotationName)
Build an annotation with the specified name. |
NestableAnnotation |
buildAnnotation(JavaResourceAnnotatedElement parent,
AnnotatedElement element,
String annotationName,
int index)
Build a nestable annotation with the specified name and index. |
Annotation |
buildAnnotation(JavaResourceAnnotatedElement parent,
IAnnotation jdtAnnotation)
Build an annotation for the specified JDT annotation. |
NestableAnnotation |
buildAnnotation(JavaResourceAnnotatedElement parent,
IAnnotation jdtAnnotation,
int index)
Build a nestable annotation for the specified JDT annotation and index. |
Annotation |
buildNullAnnotation(JavaResourceAnnotatedElement parent,
String annotationName)
Build a null annotation with the specified name. |
protected AnnotationDefinition |
getAnnotationDefinition(String annotationName)
|
protected Iterable<AnnotationDefinition> |
getAnnotationDefinitions()
|
Iterable<String> |
getAnnotationNames()
Return the names of the annotations. |
String |
getContainerAnnotationName(String nestableAnnotationName)
Return the "container" annotation name for the given "nestable" annotation name. |
Iterable<String> |
getContainerAnnotationNames()
Return all the supported "container" annotation names. |
protected NestableAnnotationDefinition |
getNestableAnnotationDefinition(String annotationName)
|
protected Iterable<NestableAnnotationDefinition> |
getNestableAnnotationDefinitions()
|
String |
getNestableAnnotationName(String containerAnnotationName)
Return the "nestable" annotation name for the given "container" annotation name. |
Iterable<String> |
getNestableAnnotationNames()
Return all the supported "nestable" annotation names. |
String |
getNestableElementName(String nestableAnnotationName)
Return the annotation "element" name used for the "nestable" annotation when it is nested within a "container" annotation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericAnnotationProvider(AnnotationDefinition[] annotationDefinitions,
NestableAnnotationDefinition[] nestableAnnotationDefinitions)
| Method Detail |
|---|
protected Iterable<AnnotationDefinition> getAnnotationDefinitions()
protected AnnotationDefinition getAnnotationDefinition(String annotationName)
public Iterable<String> getAnnotationNames()
AnnotationProvider
getAnnotationNames in interface AnnotationProviderpublic Iterable<String> getContainerAnnotationNames()
AnnotationProvider
getContainerAnnotationNames in interface AnnotationProviderNestableAnnotationDefinition.getContainerAnnotationName()public Iterable<String> getNestableAnnotationNames()
AnnotationProvider
getNestableAnnotationNames in interface AnnotationProviderNestableAnnotationDefinition.getNestableAnnotationName()
public Annotation buildAnnotation(JavaResourceAnnotatedElement parent,
AnnotatedElement element,
String annotationName)
AnnotationProvider
buildAnnotation in interface AnnotationProviderAnnotationProvider.getAnnotationNames()
public Annotation buildAnnotation(JavaResourceAnnotatedElement parent,
IAnnotation jdtAnnotation)
AnnotationProvider
buildAnnotation in interface AnnotationProviderAnnotationProvider.getAnnotationNames()
public NestableAnnotation buildAnnotation(JavaResourceAnnotatedElement parent,
IAnnotation jdtAnnotation,
int index)
AnnotationProvider
buildAnnotation in interface AnnotationProviderAnnotationProvider.getNestableAnnotationNames()
public Annotation buildNullAnnotation(JavaResourceAnnotatedElement parent,
String annotationName)
AnnotationProvider
buildNullAnnotation in interface AnnotationProviderAnnotationProvider.getAnnotationNames()protected Iterable<NestableAnnotationDefinition> getNestableAnnotationDefinitions()
protected NestableAnnotationDefinition getNestableAnnotationDefinition(String annotationName)
public NestableAnnotation buildAnnotation(JavaResourceAnnotatedElement parent,
AnnotatedElement element,
String annotationName,
int index)
AnnotationProvider
buildAnnotation in interface AnnotationProviderAnnotationProvider.getNestableAnnotationNames()public String getNestableAnnotationName(String containerAnnotationName)
AnnotationProvider
getNestableAnnotationName in interface AnnotationProviderNestableAnnotationDefinitionpublic String getContainerAnnotationName(String nestableAnnotationName)
AnnotationProvider
getContainerAnnotationName in interface AnnotationProviderNestableAnnotationDefinitionpublic String getNestableElementName(String nestableAnnotationName)
AnnotationProvider
getNestableElementName in interface AnnotationProviderNestableAnnotationDefinition.getElementName()
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||