cetus.hir
Class AnnotationStatement

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

public class AnnotationStatement
extends Statement

AnnotationStatement is used for stand-alone annotations in executable code section, e.g., under CompoundStatement.


Field Summary
 
Fields inherited from class cetus.hir.Statement
annotations, children, line_number, object_print_method, parent
 
Constructor Summary
AnnotationStatement()
          Constructs an empty annotation statement.
AnnotationStatement(Annotation annotation)
          Constructs a new annotation statement with the specified annotation.
 
Method Summary
static void defaultPrint(AnnotationStatement astmt, java.io.OutputStream stream)
          Prints this annotation statement.
static void setClassPrintMethod(java.lang.reflect.Method m)
          Sets the class print method with the given method.
 java.lang.String toString()
          Returns the string representation of this annotation statement.
 
Methods inherited from class cetus.hir.Statement
annotate, annotateAfter, annotateBefore, annotationToString, clone, containsAnnotation, detach, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getChildren, getParent, getProcedure, print, removeAnnotations, removeAnnotations, removeChild, setChild, setLineNumber, setParent, setPrintMethod, swapWith, toAnnotatedString, verify, where
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationStatement

public AnnotationStatement()
Constructs an empty annotation statement.


AnnotationStatement

public AnnotationStatement(Annotation annotation)
Constructs a new annotation statement with the specified annotation.

Method Detail

defaultPrint

public static void defaultPrint(AnnotationStatement astmt,
                                java.io.OutputStream stream)
Prints this annotation statement.


setClassPrintMethod

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


toString

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

Specified by:
toString in class Statement