Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
Modifier and Type | Method and Description |
---|---|
JAnnotationUse |
JVar.annotate(Class<? extends Annotation> clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JPackage.annotate(Class<? extends Annotation> clazz) |
JAnnotationUse |
JMethod.annotate(Class<? extends Annotation> clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JEnumConstant.annotate(Class<? extends Annotation> clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JDefinedClass.annotate(Class<? extends Annotation> clazz)
Adding ability to annotate a class
|
JAnnotationUse |
JAnnotationUse.annotate(Class<? extends Annotation> clazz)
|
JAnnotationUse |
JAnnotationArrayMember.annotate(Class<? extends Annotation> clazz)
Adds a new annotation to the array.
|
JAnnotationUse |
JAnnotatable.annotate(Class<? extends Annotation> clazz)
Adds an annotation to this program element.
|
JAnnotationUse |
JVar.annotate(JClass clazz)
Adds an annotation to this variable.
|
JAnnotationUse |
JPackage.annotate(JClass clazz) |
JAnnotationUse |
JMethod.annotate(JClass 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 |
JAnnotatable.annotate(JClass clazz)
Adds an annotation to this program element.
|
JAnnotationUse |
JAnnotationUse.annotationParam(String name,
Class<? extends 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(String name,
boolean value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
byte value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
char value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
Class<?> value)
Adds a member value pair to this annotation
This can be used for e.g to specify
|
JAnnotationUse |
JAnnotationUse.param(String name,
double value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
Enum<?> value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
float value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
int value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
JEnumConstant value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
JExpression value)
Adds a member value pair to this annotation.
|
JAnnotationUse |
JAnnotationUse.param(String name,
JType type)
Adds a member value pair to this annotation based on the
type represented by the given JType
|
JAnnotationUse |
JAnnotationUse.param(String name,
long value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
short value)
Adds a member value pair to this annotation
|
JAnnotationUse |
JAnnotationUse.param(String name,
String value)
Adds a member value pair to this annotation
|
Modifier and Type | Method and Description |
---|---|
Collection<JAnnotationUse> |
JVar.annotations() |
Collection<JAnnotationUse> |
JPackage.annotations() |
Collection<JAnnotationUse> |
JMethod.annotations() |
Collection<JAnnotationUse> |
JEnumConstant.annotations()
|
Collection<JAnnotationUse> |
JDefinedClass.annotations()
|
Collection<JAnnotationUse> |
JAnnotationArrayMember.annotations()
|
Collection<JAnnotationUse> |
JAnnotatable.annotations()
Read-only live view of all annotations on this
JAnnotatable |
Modifier and Type | Method and Description |
---|---|
JAnnotationArrayMember |
JAnnotationArrayMember.param(JAnnotationUse value)
|
boolean |
JVar.removeAnnotation(JAnnotationUse annotation) |
boolean |
JPackage.removeAnnotation(JAnnotationUse annotation) |
boolean |
JMethod.removeAnnotation(JAnnotationUse annotation) |
boolean |
JEnumConstant.removeAnnotation(JAnnotationUse annotation) |
boolean |
JDefinedClass.removeAnnotation(JAnnotationUse annotation) |
boolean |
JAnnotationArrayMember.removeAnnotation(JAnnotationUse annotation) |
boolean |
JAnnotatable.removeAnnotation(JAnnotationUse annotation)
Removes annotation from this program element.
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.