cetus.hir
Class PragmaAnnotation

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
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>
Direct Known Subclasses:
CetusAnnotation, OmpAnnotation

public class PragmaAnnotation
extends Annotation

PragmaAnnotation is used for annotations of pragma 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
PragmaAnnotation()
          Constructs an empty pragma annotation.
PragmaAnnotation(java.lang.String pragma)
          Constructs a simple pragma with raw string.
 
Method Summary
 boolean containsKeys(java.util.Collection<java.lang.String> keys)
          Checks if the specified keys all exist in the key set.
 java.lang.String getName()
          Returns the name of this pragma annotation.
 java.lang.String toString()
          Returns the string representation of this pragma annotation.
 
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

PragmaAnnotation

public PragmaAnnotation()
Constructs an empty pragma annotation.


PragmaAnnotation

public PragmaAnnotation(java.lang.String pragma)
Constructs a simple pragma with raw string.

Method Detail

getName

public java.lang.String getName()
Returns the name of this pragma annotation.


containsKeys

public boolean containsKeys(java.util.Collection<java.lang.String> keys)
Checks if the specified keys all exist in the key set.


toString

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

Specified by:
toString in class Annotation
Returns:
the string.