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

All Superinterfaces:
AnnotationAdapter

public interface IndexedAnnotationAdapter
extends AnnotationAdapter

Adapt an indexed Java annotation with a simple-to-use interface. 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)
          Move the annotation to the specified index, leaving its original position cleared out.
 
Methods inherited from interface org.eclipse.jpt.core.utility.jdt.AnnotationAdapter
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)
Move the annotation to the specified index, leaving its original position cleared out.