|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface JavaResourceAnnotatedElement
Java source code or binary annotated element.
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 | |
|---|---|
static class |
JavaResourceAnnotatedElement.AstNodeType
The java element's ASTNode type. |
static class |
JavaResourceAnnotatedElement.AstNodeTypeEquals
|
static class |
JavaResourceAnnotatedElement.IsAnnotated
|
static class |
JavaResourceAnnotatedElement.IsAnnotatedWithAnyOf
|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceNode |
|---|
JavaResourceNode.FileTransformer, JavaResourceNode.Root |
| Field Summary | |
|---|---|
static String |
ANNOTATIONS_COLLECTION
String associated with changes to the "annotations" collection |
static org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceAnnotatedElement> |
IS_ANNOTATED
|
static String |
NESTABLE_ANNOTATIONS_COLLECTION
String associated with changes to the "nestableAnnotations" collection |
| Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceNode |
|---|
FILE_TRANSFORMER |
| Method Summary | |
|---|---|
NestableAnnotation |
addAnnotation(int index,
String nestableAnnotationName)
Add a new nestable annotation with the specified name. |
Annotation |
addAnnotation(String annotationName)
Add a top-level stand-alone annotation with the specified name and return the newly-created annotation. |
NestableAnnotation |
getAnnotation(int index,
String nestableAnnotationName)
Return the nestable annotation at the specified index with the specified name. |
Annotation |
getAnnotation(String annotationName)
Return the annotation with the specified name. |
Iterable<Annotation> |
getAnnotations()
Return the member's top-level stand-alone annotations in the order that they appear. |
org.eclipse.jpt.common.utility.iterable.ListIterable<NestableAnnotation> |
getAnnotations(String nestableAnnotationName)
Return the nestable annotations with the specified name in the order that they appear. |
int |
getAnnotationsSize()
Return the number of top-level stand-alone annotations. |
int |
getAnnotationsSize(String nestableAnnotationName)
Return the number of nestable annotations with the specified name. |
JavaResourceAnnotatedElement.AstNodeType |
getAstNodeType()
Return the element's ASTNode type |
Annotation |
getContainerAnnotation(String containerAnnotationName)
Return the "container" annotation with the specified name. |
TextRange |
getNameTextRange()
Return the text range for the member's name. |
Annotation |
getNonNullAnnotation(String annotationName)
Return the specified top-level stand-alone annotation. |
TextRange |
getTextRange(String nestableAnnotationName)
Return the text range for the nestable annotation if it is currently unnested. |
Iterable<Annotation> |
getTopLevelAnnotations()
Return the element's "top level" annotations. |
boolean |
isAnnotated()
Return whether the underlying JDT member is currently annotated with any recognized annotations. |
boolean |
isAnnotatedWithAnyOf(Iterable<String> annotationNames)
Return whether the underlying JDT member is annotated with any of the given annotations. |
void |
moveAnnotation(int targetIndex,
int sourceIndex,
String nestableAnnotationName)
Move the nestable annotation at the specified source index to the specified target index. |
void |
removeAnnotation(int index,
String nestableAnnotationName)
Remove the specified nestable annotation from the container annotation at the specified index. |
void |
removeAnnotation(String annotationName)
Remove the specified top-level standalone annotation. |
| Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceNode |
|---|
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener |
| Field Detail |
|---|
static final String ANNOTATIONS_COLLECTION
static final String NESTABLE_ANNOTATIONS_COLLECTION
static final org.eclipse.jpt.common.utility.predicate.Predicate<JavaResourceAnnotatedElement> IS_ANNOTATED
| Method Detail |
|---|
Iterable<Annotation> getAnnotations()
getContainerAnnotation(String),
getAnnotations(String)int getAnnotationsSize()
getAnnotationsSize(String)Annotation getAnnotation(String annotationName)
getContainerAnnotation(String),
getAnnotation(int, String)Annotation getContainerAnnotation(String containerAnnotationName)
getAnnotation(String),
getAnnotation(int, String)Annotation getNonNullAnnotation(String annotationName)
org.eclipse.jpt.common.utility.iterable.ListIterable<NestableAnnotation> getAnnotations(String nestableAnnotationName)
getAnnotations(),
getContainerAnnotation(String)int getAnnotationsSize(String nestableAnnotationName)
NestableAnnotation getAnnotation(int index,
String nestableAnnotationName)
Annotation addAnnotation(String annotationName)
addAnnotation(int, String)
NestableAnnotation addAnnotation(int index,
String nestableAnnotationName)
void moveAnnotation(int targetIndex,
int sourceIndex,
String nestableAnnotationName)
void removeAnnotation(String annotationName)
removeAnnotation(int, String)
void removeAnnotation(int index,
String nestableAnnotationName)
Iterable<Annotation> getTopLevelAnnotations()
boolean isAnnotated()
boolean isAnnotatedWithAnyOf(Iterable<String> annotationNames)
JavaResourceAnnotatedElement.AstNodeType getAstNodeType()
TextRange getNameTextRange()
TextRange getTextRange(String nestableAnnotationName)
JavaResourceNode.getTextRange(),
AnnotationProvider.getContainerAnnotationName(String)
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||