|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Annotatable
Annotatable interface defines methods for Cetus IR that contains a list of annotations. Declaration and Statement implement Annotatable now.
| Method Summary | ||
|---|---|---|
void |
annotate(Annotation annotation)
Annotates with the given annotation. |
|
void |
annotateAfter(Annotation annotation)
|
|
void |
annotateBefore(Annotation annotation)
|
|
java.lang.String |
annotationToString(int position)
Returns the string representation of the annotations with the given relative position. |
|
boolean |
containsAnnotation(java.lang.Class<? extends Annotation> type,
java.lang.String key)
Checks if this annotatable contains the specified annotation type and key. |
|
|
getAnnotation(java.lang.Class<T> type,
java.lang.String key)
Returns the annotation with the specified type and key. |
|
java.util.List<Annotation> |
getAnnotations()
Returns the list of annotations. |
|
|
getAnnotations(java.lang.Class<T> type)
Returns the list of annotations with the given type. |
|
java.util.List<Annotation> |
getAnnotations(int position)
Returns the list of annotations with the given relative position. |
|
void |
removeAnnotations()
Remove all annotations. |
|
void |
removeAnnotations(java.lang.Class<?> type)
Remove all annotations of the given type. |
|
java.lang.String |
toAnnotatedString()
Returns the string representation of the object with annotations being printed as well. |
|
| Method Detail |
|---|
void annotate(Annotation annotation)
void annotateAfter(Annotation annotation)
void annotateBefore(Annotation annotation)
java.util.List<Annotation> getAnnotations()
<T extends Annotation> java.util.List<T> getAnnotations(java.lang.Class<T> type)
boolean containsAnnotation(java.lang.Class<? extends Annotation> type,
java.lang.String key)
<T extends Annotation> T getAnnotation(java.lang.Class<T> type,
java.lang.String key)
java.util.List<Annotation> getAnnotations(int position)
void removeAnnotations()
void removeAnnotations(java.lang.Class<?> type)
java.lang.String annotationToString(int position)
java.lang.String toAnnotatedString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||