cetus.hir
Class OmpAnnotation

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by cetus.hir.Annotation
              extended by cetus.hir.PragmaAnnotation
                  extended by cetus.hir.OmpAnnotation
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class OmpAnnotation
extends PragmaAnnotation

OmpAnnotation is used for internally representing OpenMP pragmas. OpenMP pragmas are raw text right after parsing but converted to an internal annotation of this type.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
 
Fields inherited from class cetus.hir.Annotation
AFTER, BEFORE, ir, position, skip_print, WITH
 
Constructor Summary
OmpAnnotation()
          Constructs an empty omp annotation.
OmpAnnotation(java.lang.String key, java.lang.Object value)
          Constructs an omp annotation with the given key-value pair.
 
Method Summary
 java.lang.String toString()
          Returns the string representation of this omp annotation.
 
Methods inherited from class cetus.hir.PragmaAnnotation
containsKeys, getName
 
Methods inherited from class cetus.hir.Annotation
attach, clone, get, getAnnotatable, setPosition, setSkipPrint, toString
 
Methods inherited from class java.util.HashMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

OmpAnnotation

public OmpAnnotation()
Constructs an empty omp annotation.


OmpAnnotation

public OmpAnnotation(java.lang.String key,
                     java.lang.Object value)
Constructs an omp annotation with the given key-value pair.

Method Detail

toString

public java.lang.String toString()
Returns the string representation of this omp annotation.

Overrides:
toString in class PragmaAnnotation
Returns:
the string representation.