|
||||||||||
| 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 |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode |
|---|
JavaResourceNode.Root |
| Field Summary | |
|---|---|
static java.lang.String |
ANNOTATIONS_COLLECTION
String associated with changes to the "annotations" collection |
| Method Summary | |
|---|---|
NestableAnnotation |
addAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Add a new nestable annotation with the specified name. |
Annotation |
addAnnotation(java.lang.String annotationName)
Add an annotation with the specified name. |
void |
addStandAloneAnnotation(NestableAnnotation standAloneAnnotation)
In preparation for a just-unnested annotation being written to the source file, add the just-unnested annotation to the member without firing change notification. |
java.util.Iterator<Annotation> |
annotations()
Return the member's annotations in the order they appear. |
java.util.Iterator<NestableAnnotation> |
annotations(java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Return the nestable annotations with the specified name in the order they appear. |
int |
annotationsSize()
Return the number of annotations. |
Annotation |
getAnnotation(java.lang.String annotationName)
Return the annotation with the specified name. |
TextRange |
getNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the text range for the member's name. |
Annotation |
getNonNullAnnotation(java.lang.String annotationName)
Return the annotation with the specified name. |
boolean |
isAnnotated()
Return whether the underlying JDT member is currently annotated with any recognized annotations. |
void |
moveAnnotation(int targetIndex,
int sourceIndex,
java.lang.String containerAnnotationName)
Move the nestable annotation found in the specified container annotation at the specified source index to the specified target index. |
void |
removeAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Remove the specified nestable annotation from the container annotation at the specified index. |
void |
removeAnnotation(java.lang.String annotationName)
Remove the specified annotation. |
| Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode |
|---|
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange, initialize, synchronizeWith |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Field Detail |
|---|
static final java.lang.String ANNOTATIONS_COLLECTION
| Method Detail |
|---|
java.util.Iterator<Annotation> annotations()
int annotationsSize()
Annotation getAnnotation(java.lang.String annotationName)
null if the member does not have an annotation
with the specified name.
Annotation getNonNullAnnotation(java.lang.String annotationName)
null; instead, return but a null
annotation (i.e. an implementation that provides only default behavior)
if the member does not have an annotation with the specified name.
java.util.Iterator<NestableAnnotation> annotations(java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
Annotation addAnnotation(java.lang.String annotationName)
NestableAnnotation addAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
void moveAnnotation(int targetIndex,
int sourceIndex,
java.lang.String containerAnnotationName)
void removeAnnotation(java.lang.String annotationName)
void removeAnnotation(int index,
java.lang.String nestableAnnotationName,
java.lang.String containerAnnotationName)
removeAnnotation(String)
void addStandAloneAnnotation(NestableAnnotation standAloneAnnotation)
boolean isAnnotated()
TextRange getNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||