|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Annotation
Common Java resource annotation behavior 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.common.core.resource.java.JavaResourceModel |
|---|
JavaResourceModel.FileTransformer, JavaResourceModel.Root |
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel |
|---|
FILE_TRANSFORMER |
| Method Summary | |
|---|---|
String |
getAnnotationName()
Return the annotation's fully qualified name, as opposed to the value of the annotation's 'name' element. |
Annotation |
getAstAnnotation(CompilationUnit astRoot)
Return the corresponding JDT DOM annotation from the specified AST compilation unit. |
void |
initialize(Annotation astAnnotation)
Initialize the [source] node from the specified AST annotation. |
void |
initialize(CompilationUnit astRoot)
Initialize the [source] node from the specified AST. |
boolean |
isUnset()
Return whether all the annotation's member values are null;
implying the annotation can be removed if it has no semantic value as a
marker annotation. |
void |
newAnnotation()
Create and add the corresponding Java annotation to the JDT DOM. |
void |
removeAnnotation()
Remove the corresponding Java annotation from the JDT DOM. |
void |
synchronizeWith(Annotation astAnnotation)
Synchronize the [source] node with the specified AST annotation. |
void |
synchronizeWith(CompilationUnit astRoot)
Synchronize the [source] node with the specified AST. |
| Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel |
|---|
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 |
| Method Detail |
|---|
void initialize(CompilationUnit astRoot)
void synchronizeWith(CompilationUnit astRoot)
void initialize(Annotation astAnnotation)
void synchronizeWith(Annotation astAnnotation)
String getAnnotationName()
Annotation getAstAnnotation(CompilationUnit astRoot)
void newAnnotation()
JavaResourceAnnotatedElement.addAnnotation(String)void removeAnnotation()
JavaResourceAnnotatedElement.removeAnnotation(String)boolean isUnset()
null;
implying the annotation can be removed if it has no semantic value as a
marker annotation.
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||