public class AnnotationDeclaration extends Declaration
| Constructor and Description |
|---|
AnnotationDeclaration()
Constructs an empty annotation declaration.
|
AnnotationDeclaration(Annotation annotation)
Constructs a new annotation declaration with the given annotation.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(AnnotationDeclaration d,
java.io.PrintWriter o)
Prints this annotation declaration.
|
java.util.List<IDExpression> |
getDeclaredIDs()
Returns an empty list - not used for an annotation declaration.
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Sets the class print method with the specified method.
|
annotate, annotateAfter, annotateBefore, clone, containsAnnotation, detach, equals, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getChildren, getParent, hashCode, print, removeAnnotations, removeAnnotations, removeChild, setChild, setParent, setPrintMethod, setSemiColon, toString, verifypublic AnnotationDeclaration()
public AnnotationDeclaration(Annotation annotation)
annotation - the new annotation to be inserted.public java.util.List<IDExpression> getDeclaredIDs()
getDeclaredIDs in class Declarationpublic static void defaultPrint(AnnotationDeclaration d, java.io.PrintWriter o)
public static void setClassPrintMethod(java.lang.reflect.Method m)