Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
Modifier and Type | Method and Description |
---|---|
JAnnotationUse |
JPackage.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz) |
JAnnotationUse |
JEnumConstant.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JDefinedClass.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adding ability to annotate a class
|
JAnnotationUse |
JMethod.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JVar.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JAnnotationUse.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
|
JAnnotationUse |
JAnnotatable.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds an annotation to this program element.
|
JAnnotationUse |
JAnnotationArrayMember.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds a new annotation to the array.
|
JAnnotationUse |
JPackage.annotate(JClass clazz) |
JAnnotationUse |
JEnumConstant.annotate(JClass clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JDefinedClass.annotate(JClass clazz)
Adding ability to annotate a class
|
JAnnotationUse |
JMethod.annotate(JClass clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JVar.annotate(JClass clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JAnnotatable.annotate(JClass clazz)
Adds an annotation to this program element.
|
JAnnotationUse |
JAnnotationArrayMember.annotate(JClass clazz)
Adds a new annotation to the array.
|
JAnnotationUse |
JAnnotationUse.annotationParam(java.lang.String name,
java.lang.Class<? extends java.lang.annotation.Annotation> value)
Adds a member value pair to this annotation
For adding class values as param
|
JAnnotationUse |
JAnnotationWriter.getAnnotationUse()
Gets the underlying annotation use object to which we are writing.
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
boolean value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
java.lang.Class value)
Adds a member value pair to this annotation
This can be used for e.g to specify
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
java.lang.Enum value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
int value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
JEnumConstant value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
JType type)
Adds a member value pair to this annotation based on the
type represented by the given JType
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
java.lang.String value)
Adds a member value pair to this annotation
|
Modifier and Type | Method and Description |
---|---|
JAnnotationArrayMember |
JAnnotationArrayMember.param(JAnnotationUse value)
|
Copyright © 2005-2014 Sun Microsystems. All Rights Reserved.