org.eclipse.jpt.core.resource.java
Interface NestableAnnotation

All Superinterfaces:
Annotation, JavaResourceNode, Model
All Known Subinterfaces:
NestableAssociationOverrideAnnotation, NestableAttributeOverrideAnnotation, NestableColumnAnnotation, NestableConversionValueAnnotation, NestableJoinColumnAnnotation, NestableNamedNativeQueryAnnotation, NestableNamedQueryAnnotation, NestablePrimaryKeyJoinColumnAnnotation, NestableQueryHintAnnotation, NestableSecondaryTableAnnotation, NestableUniqueConstraintAnnotation

public interface NestableAnnotation
extends Annotation

Interface for dealing with annotations that can be "nested" within other annotations, typically within arrays. 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Method Summary
 void initializeFrom(NestableAnnotation oldAnnotation)
           
 void moveAnnotation(int index)
          Move the annotation to the specified index within its container annotation.
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.Annotation
getAnnotationName, getJdtAnnotation, newAnnotation, removeAnnotation
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, update
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 

Method Detail

initializeFrom

void initializeFrom(NestableAnnotation oldAnnotation)

moveAnnotation

void moveAnnotation(int index)
Move the annotation to the specified index within its container annotation. This should only be called when the annotation is actually nested.