Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
Modifier and Type | Field and Description |
---|---|
private JAnnotationUse |
TypedAnnotationWriter.use
This is what we are writing to.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<JAnnotationUse> |
JEnumConstant.annotations
Annotations on this variable.
|
private java.util.List<JAnnotationUse> |
JDefinedClass.annotations
Annotations on this variable.
|
private java.util.List<JAnnotationUse> |
JPackage.annotations
Lazily created list of package annotations.
|
private java.util.List<JAnnotationUse> |
JVar.annotations
Annotations on this variable.
|
private java.util.List<JAnnotationUse> |
JMethod.annotations
Annotations on this variable.
|
Modifier and Type | Method and Description |
---|---|
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 |
JAnnotationArrayMember.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds a new annotation to the array.
|
JAnnotationUse |
JAnnotationUse.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
|
JAnnotationUse |
JPackage.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 |
JVar.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JMethod.annotate(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JEnumConstant.annotate(JClass clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JDefinedClass.annotate(JClass clazz)
Adding ability to annotate a class
|
JAnnotationUse |
JAnnotationArrayMember.annotate(JClass clazz)
Adds a new annotation to the array.
|
JAnnotationUse |
JPackage.annotate(JClass clazz) |
JAnnotationUse |
JAnnotatable.annotate(JClass clazz)
Adds an annotation to this program element.
|
JAnnotationUse |
JVar.annotate(JClass clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JMethod.annotate(JClass clazz)
Adds an annotation to this variable.
|
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 |
TypedAnnotationWriter.getAnnotationUse() |
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
boolean value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
byte value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
char 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,
double value)
Adds a member value pair to this annotation
|
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,
float 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,
JExpression 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,
long value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(java.lang.String name,
short value)
Adds a member value pair to this annotation
|
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 |
---|---|
java.util.Collection<JAnnotationUse> |
JEnumConstant.annotations()
|
java.util.Collection<JAnnotationUse> |
JDefinedClass.annotations()
|
java.util.Collection<JAnnotationUse> |
JAnnotationArrayMember.annotations()
|
java.util.Collection<JAnnotationUse> |
JPackage.annotations() |
java.util.Collection<JAnnotationUse> |
JAnnotatable.annotations()
Read-only live view of all annotations on this
JAnnotatable |
java.util.Collection<JAnnotationUse> |
JVar.annotations() |
java.util.Collection<JAnnotationUse> |
JMethod.annotations() |
Modifier and Type | Method and Description |
---|---|
JAnnotationArrayMember |
JAnnotationArrayMember.param(JAnnotationUse value)
|
Constructor and Description |
---|
TypedAnnotationWriter(java.lang.Class<A> annotation,
java.lang.Class<W> writer,
JAnnotationUse use) |