|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnnotationProvider
This is used to provide type and attribute annotations. Also provides list of supported annotation names, check the appropriate list before trying to build an annotation with that name. An exception will be thrown on an attempt to build an annotation that does not exist. This interface is not intended to be implemented. Instead implement AnnotationDefinitionProvider to extend the list of supported annotation definitions.
AnnotationDefinitionProvider| Method Summary | |
|---|---|
Annotation |
buildAnnotation(JavaResourceAnnotatedElement parent,
AnnotatedElement element,
java.lang.String annotationName)
Build an annotation with the specified name. |
NestableAnnotation |
buildAnnotation(JavaResourceAnnotatedElement parent,
AnnotatedElement element,
java.lang.String annotationName,
int index)
Build a nestable annotation with the specified name and index. |
Annotation |
buildAnnotation(JavaResourceAnnotatedElement parent,
org.eclipse.jdt.core.IAnnotation jdtAnnotation)
Build an annotation for the specified JDT annotation. |
Annotation |
buildNullAnnotation(JavaResourceAnnotatedElement parent,
java.lang.String annotationName)
Build a null annotation with the specified name. |
java.lang.Iterable<java.lang.String> |
getAnnotationNames()
Return the names of the annotations. |
java.lang.Iterable<java.lang.String> |
getContainerAnnotationNames()
|
java.lang.String |
getNestableAnnotationName(java.lang.String containerAnnotationName)
|
java.lang.Iterable<java.lang.String> |
getNestableAnnotationNames()
|
java.lang.String |
getNestableElementName(java.lang.String nestableAnnotationName)
|
| Method Detail |
|---|
java.lang.Iterable<java.lang.String> getAnnotationNames()
java.lang.Iterable<java.lang.String> getContainerAnnotationNames()
java.lang.Iterable<java.lang.String> getNestableAnnotationNames()
java.lang.String getNestableAnnotationName(java.lang.String containerAnnotationName)
java.lang.String getNestableElementName(java.lang.String nestableAnnotationName)
Annotation buildAnnotation(JavaResourceAnnotatedElement parent,
AnnotatedElement element,
java.lang.String annotationName)
getAnnotationNames()
NestableAnnotation buildAnnotation(JavaResourceAnnotatedElement parent,
AnnotatedElement element,
java.lang.String annotationName,
int index)
getNestableAnnotationNames()
Annotation buildAnnotation(JavaResourceAnnotatedElement parent,
org.eclipse.jdt.core.IAnnotation jdtAnnotation)
getAnnotationNames()
Annotation buildNullAnnotation(JavaResourceAnnotatedElement parent,
java.lang.String annotationName)
getAnnotationNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||