cetus.hir
Class CodeAnnotation

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.CodeAnnotation
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class CodeAnnotation
extends Annotation

CodeAnnotation is used for an annotation of raw code type. It is convenient to insert a raw code if pass writers are sure about the correctness of the inserted code for their passes. One example is inlined library codes that are called after a certain program transformation.

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
CodeAnnotation(java.lang.String code)
          Constructs a new code annotation with the given code.
 
Method Summary
 java.lang.String toString()
          Returns the string representation of this code 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

CodeAnnotation

public CodeAnnotation(java.lang.String code)
Constructs a new code annotation with the given code.

Method Detail

toString

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

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