|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnnotationContainer<T extends NestableAnnotation>
Common behavior for all annotation "containers". Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Method Summary | |
|---|---|
T |
addNestedAnnotationInternal()
Add a nested annotation to the container without firing change notification. |
java.lang.String |
getContainerAnnotationName()
Return the name of the container annotation. |
org.eclipse.jdt.core.dom.Annotation |
getContainerJdtAnnotation(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the corresponding JDT DOM annotation from the specified AST compilation unit. |
java.lang.String |
getElementName()
Return the name of the container annotation's element that is used to indicate the nested annotations (typically "value"). |
java.lang.String |
getNestableAnnotationName()
Return the name of the nested annotations held by the container. |
T |
moveNestedAnnotationInternal(int targetIndex,
int sourceIndex)
Move the nested annotation at the specified source index in the container to the specified target index without firing change notification. |
void |
nestedAnnotationAdded(int index,
T nestedAnnotation)
The specified nested annotation was added to the container at the specified index; notify interested parties. |
void |
nestedAnnotationMoved(int targetIndex,
int sourceIndex)
A nested annotation was moved within the container annotation from the specified source index to the specified target index; notify interested parties. |
void |
nestedAnnotationRemoved(int index,
T nestedAnnotation)
The specified nested annotation was removed from the container at the specified index; notify interested parties. |
java.util.ListIterator<T> |
nestedAnnotations()
Return the nested annotations held by the container. |
int |
nestedAnnotationsSize()
Return the number of nested annotations held by the container. |
T |
removeNestedAnnotationInternal(int index)
Remove the nested annotation at the specified index from the container without firing change notification. |
| Method Detail |
|---|
java.lang.String getContainerAnnotationName()
org.eclipse.jdt.core.dom.Annotation getContainerJdtAnnotation(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
java.lang.String getElementName()
java.lang.String getNestableAnnotationName()
java.util.ListIterator<T> nestedAnnotations()
int nestedAnnotationsSize()
T addNestedAnnotationInternal()
void nestedAnnotationAdded(int index,
T nestedAnnotation)
T moveNestedAnnotationInternal(int targetIndex,
int sourceIndex)
void nestedAnnotationMoved(int targetIndex,
int sourceIndex)
T removeNestedAnnotationInternal(int index)
void nestedAnnotationRemoved(int index,
T nestedAnnotation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||