com.sun.codemodel
public final class JAnnotationArrayMember extends JAnnotationValue implements JAnnotatable
This class implements JAnnotatable
to allow
new annotations to be added as a member of the array.
Modifier and Type | Method and Description |
---|---|
JAnnotationUse |
annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds a new annotation to the array.
|
JAnnotationUse |
annotate(JClass clazz)
Adds a new annotation to the array.
|
<W extends JAnnotationWriter> |
annotate2(java.lang.Class<W> clazz)
Adds an annotation to this program element
and returns a type-safe writer to fill in the values of such annotations.
|
void |
generate(JFormatter f) |
JAnnotationArrayMember |
param(boolean value) |
JAnnotationArrayMember |
param(java.lang.Class value) |
JAnnotationArrayMember |
param(float value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(int value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(JAnnotationUse value)
|
JAnnotationArrayMember |
param(JType type) |
JAnnotationArrayMember |
param(java.lang.String value)
Adds an array member to this annotation
|
public JAnnotationArrayMember param(java.lang.String value)
value
- Adds a string value to the array memberpublic JAnnotationArrayMember param(boolean value)
public JAnnotationArrayMember param(int value)
value
- Adds an int value to the array memberpublic JAnnotationArrayMember param(float value)
value
- Adds a float value to the array memberpublic JAnnotationArrayMember param(java.lang.Class value)
public JAnnotationArrayMember param(JType type)
public JAnnotationUse annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
annotate
in interface JAnnotatable
clazz
- The annotation class to annotate the program element withpublic JAnnotationUse annotate(JClass clazz)
annotate
in interface JAnnotatable
clazz
- The annotation class to annotate the program element withpublic <W extends JAnnotationWriter> W annotate2(java.lang.Class<W> clazz)
JAnnotatable
annotate2
in interface JAnnotatable
public JAnnotationArrayMember param(JAnnotationUse value)
value
- Adds a annotation to the array memberpublic void generate(JFormatter f)
Copyright © 2005-2014 Sun Microsystems. All Rights Reserved.