cetus.hir
Class AnnotationDeclaration

java.lang.Object
  extended by cetus.hir.Declaration
      extended by cetus.hir.AnnotationDeclaration
All Implemented Interfaces:
Annotatable, Printable, Traversable, java.lang.Cloneable

public class AnnotationDeclaration
extends Declaration

AnnotationDeclaration is used for stand-alone annotations in non-executable code section, e.g., under TranslationUnit.


Field Summary
 
Fields inherited from class cetus.hir.Declaration
annotations, children, object_print_method, parent, print_as_statement_method
 
Constructor Summary
AnnotationDeclaration()
          Constructs an empty annotation declaration.
AnnotationDeclaration(Annotation annotation)
          Constructs a new annotation declaration with the given annotation.
 
Method Summary
static void defaultPrint(AnnotationDeclaration adecl, java.io.OutputStream stream)
          Prints this annotation declaration.
 java.util.List getDeclaredSymbols()
          Returns null; unused abstract method.
static void setClassPrintMethod(java.lang.reflect.Method m)
          Sets the class print method with the specified method.
 java.lang.String toString()
          Returns the string representation of this annotation declaration.
 
Methods inherited from class cetus.hir.Declaration
annotate, annotateAfter, annotateBefore, annotationToString, clone, containsAnnotation, detach, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getChildren, getParent, print, printAsStatement, removeAnnotations, removeAnnotations, removeChild, setChild, setParent, setPrintMethod, toAnnotatedString, verify
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationDeclaration

public AnnotationDeclaration()
Constructs an empty annotation declaration.


AnnotationDeclaration

public AnnotationDeclaration(Annotation annotation)
Constructs a new annotation declaration with the given annotation.

Method Detail

getDeclaredSymbols

public java.util.List getDeclaredSymbols()
Returns null; unused abstract method.

Specified by:
getDeclaredSymbols in class Declaration
Returns:
a list of IDExpressions. The list will not be null but may be empty.

defaultPrint

public static void defaultPrint(AnnotationDeclaration adecl,
                                java.io.OutputStream stream)
Prints this annotation declaration.


setClassPrintMethod

public static void setClassPrintMethod(java.lang.reflect.Method m)
Sets the class print method with the specified method.


toString

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

Specified by:
toString in class Declaration