org.eclipse.jpt.core.utility.jdt
Interface IndexedDeclarationAnnotationAdapter

All Superinterfaces:
DeclarationAnnotationAdapter

public interface IndexedDeclarationAnnotationAdapter
extends DeclarationAnnotationAdapter

Allow clients to manipulate an annotation within an array of annotations. 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. This interface is not intended to be implemented by clients.


Method Summary
 int getIndex()
          Return the the index at which the annotation is situated.
 void moveAnnotation(int newIndex, ModifiedDeclaration declaration)
          Move the annotation to the specified index, leaving its original position cleared out.
 
Methods inherited from interface org.eclipse.jpt.core.utility.jdt.DeclarationAnnotationAdapter
getAnnotation, getAstNode, newMarkerAnnotation, newNormalAnnotation, newSingleMemberAnnotation, removeAnnotation
 

Method Detail

getIndex

int getIndex()
Return the the index at which the annotation is situated.


moveAnnotation

void moveAnnotation(int newIndex,
                    ModifiedDeclaration declaration)
Move the annotation to the specified index, leaving its original position cleared out.