|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.codemodel.JAnnotationValue
com.sun.codemodel.JAnnotationArrayMember
public final class JAnnotationArrayMember
Represents an arrays as annotation members
This class implements JAnnotatable
to allow
new annotations to be added as a member of the array.
Method Summary | ||
---|---|---|
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. |
|
|
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)
Deprecated. use annotate(java.lang.Class extends java.lang.annotation.Annotation>) |
|
JAnnotationArrayMember |
param(JType type)
|
|
JAnnotationArrayMember |
param(java.lang.String value)
Adds an array member to this annotation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public JAnnotationArrayMember param(java.lang.String value)
value
- Adds a string value to the array member
public JAnnotationArrayMember param(boolean value)
public JAnnotationArrayMember param(int value)
value
- Adds an int value to the array member
public JAnnotationArrayMember param(float value)
value
- Adds a float value to the array member
public 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)
annotate(java.lang.Class extends java.lang.annotation.Annotation>)
value
- Adds a annotation to the array member
public void generate(JFormatter f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |