| Package | Description |
|---|---|
| cetus.hir |
| Modifier and Type | Class and Description |
|---|---|
class |
CetusAnnotation
CetusAnnotation is used for internal annotations inserted by Cetus analysis
and transformation.
|
class |
CodeAnnotation
CodeAnnotation is used for an annotation of raw code type.
|
class |
CommentAnnotation
CommentAnnotation is used for an annotation of comment type.
|
class |
InlineAnnotation
Introduces inline annotations.
|
class |
OmpAnnotation
OmpAnnotation is used for internally representing OpenMP pragmas.
|
class |
PragmaAnnotation
PragmaAnnotation is used for annotations of pragma type.
|
static class |
PragmaAnnotation.Event
Pragma annotation type for event timer.
|
static class |
PragmaAnnotation.Range
Pragma annotation type for range annotation.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
Statement.getAnnotation(java.lang.Class<T> type,
java.lang.String key)
Returns the first occurrence of the annotation with the specified type
and the string key.
|
<T extends Annotation> |
Declaration.getAnnotation(java.lang.Class<T> type,
java.lang.String key)
Returns the first occurrence of the annotation with the specified type
and the string key.
|
<T extends Annotation> |
Annotatable.getAnnotation(java.lang.Class<T> type,
java.lang.String key)
Returns the annotation with the specified type and key.
|
<T extends Annotation> |
Statement.getAnnotations(java.lang.Class<T> type)
Returns the list of annotations with the specified type, attached to this
statement.
|
<T extends Annotation> |
Declaration.getAnnotations(java.lang.Class<T> type)
Returns the list of annotations with the specified type, attached to this
declaration.
|
<T extends Annotation> |
Annotatable.getAnnotations(java.lang.Class<T> type)
Returns the list of annotations with the given type.
|
static <T extends Annotation> |
Annotation.hideAnnotations(Annotatable at,
java.lang.Class<T> type)
Disables printing of the specified annotation type attached at the given
annotatable object.
|
| Modifier and Type | Method and Description |
|---|---|
Annotation |
Annotation.clone()
Returns a clone of this annotation object.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Annotation> |
Statement.getAnnotations()
Returns the list of annotations attached to this statement.
|
java.util.List<Annotation> |
Declaration.getAnnotations()
Returns the list of annotations attached to this declaration.
|
java.util.List<Annotation> |
Annotatable.getAnnotations()
Returns the list of annotations.
|
java.util.List<Annotation> |
Statement.getAnnotations(int position)
Returns the list of annotations attached at the specified position of this
statement.
|
java.util.List<Annotation> |
Declaration.getAnnotations(int position)
Returns the list of annotations attached at the specified position of this
declaration.
|
java.util.List<Annotation> |
Annotatable.getAnnotations(int position)
Returns the list of annotations with the given relative position.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Statement.annotate(Annotation annotation)
Inserts the given annotation to this statement.
|
void |
Declaration.annotate(Annotation annotation)
Inserts the given annotation to this declaration.
|
void |
Annotatable.annotate(Annotation annotation)
Annotates with the given annotation.
|
void |
Statement.annotateAfter(Annotation annotation)
Inserts the given annotation after this statement.
|
void |
Declaration.annotateAfter(Annotation annotation)
Inserts the given annotation after this declaration.
|
void |
Annotatable.annotateAfter(Annotation annotation)
Annotates with the given annotation after the annotatable object.
|
void |
Statement.annotateBefore(Annotation annotation)
Inserts the given annotation before this statement.
|
void |
Declaration.annotateBefore(Annotation annotation)
Inserts the given annotation before this declaration.
|
void |
Annotatable.annotateBefore(Annotation annotation)
Annotates with the given annotation before the annotatable object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Statement.containsAnnotation(java.lang.Class<? extends Annotation> type,
java.lang.String key)
Checks if this statement contains any annotation with the specified type
and the string key.
|
boolean |
Declaration.containsAnnotation(java.lang.Class<? extends Annotation> type,
java.lang.String key)
Checks if this declaration contains any annotation with the specified type
and the string key.
|
boolean |
Annotatable.containsAnnotation(java.lang.Class<? extends Annotation> type,
java.lang.String key)
Checks if this annotatable contains the specified annotation type and key.
|
void |
Statement.removeAnnotations(java.lang.Class<? extends Annotation> type)
Removes all annotations with the specified type.
|
void |
Declaration.removeAnnotations(java.lang.Class<? extends Annotation> type)
Removes all annotations with the specified type.
|
void |
Annotatable.removeAnnotations(java.lang.Class<? extends Annotation> type)
Remove all annotations of the given type.
|
static void |
Tools.removeAnnotations(Traversable t,
java.lang.Class<? extends Annotation> type)
Deprecated.
|
static void |
IRTools.removeAnnotations(Traversable t,
java.lang.Class<? extends Annotation> type)
Removes all annotations with the specified type from the given traversable
object.
|
| Constructor and Description |
|---|
AnnotationDeclaration(Annotation annotation)
Constructs a new annotation declaration with the given annotation.
|
AnnotationStatement(Annotation annotation)
Constructs a new annotation statement with the specified annotation.
|