| Modifier and Type | Field and Description |
|---|---|
| private final JClass | clazz
The |
| private Map | memberValues
Map of member values. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public JAnnotationUse | Returns: The JAnnotationUse that can be used as a member within this JAnnotationUseThe annotation class to be included clazz)
Deprecated
use
JAnnotationArrayMember#annotate
This can be used to add annotations inside annotations for e.g @XmlCollection(values= @XmlCollectionItem(type=Foo.class)) |
| public JAnnotationUse | Returns: The JAnnotationUse. More member value pairs can be added to it using the same or the overloaded methods.The simple name for this annotation name, Class<? extends Annotation> The annotation class which is member value for this annotation value)Adds a member value pair to this annotation For adding class values as param |
| public void | |
| public JClass | |
| public Map | |
| private boolean | |
| private JCodeModel | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | |
| public JAnnotationUse | Returns: The JAnnotationUse. More member value pairs can be added to it using the same or the overloaded methods.The simple name for this annotation name, JEnumConstant The JEnumConstant which is member value for this annotation value)Adds a member value pair to this annotation |
| public JAnnotationUse | Returns: The JAnnotationUse. More member value pairs can be added to it using the same or the overloaded methods.The simple name for this annotation param name, final Class<?> The class type of the param value)Adds a member value pair to this annotation This can be used for e.g to specify
|
| public JAnnotationUse | Returns: The JAnnotationUse. More member value pairs can be added to it using the same or the overloaded methods.The simple name for this annotation name, JAnnotationValue The JAnnotationValue member value for this annotation value)Adds a member value pair to this annotation |
| public JAnnotationUse | Returns: The JAnnotationUse. More member value pairs can be added to it using the same or the overloaded methods.The simple name for this annotation param name, JType the JType representing the actual type type)Adds a member value pair to this annotation based on the type represented by the given JType |
| public JAnnotationUse | Returns: The JAnnotationUse. More member value pairs can be added to it using the same or the overloaded methods.The simple name for this annotation name, JExpression The JExpression which provides the contant value for this annotation value)Adds a member value pair to this annotation. |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. For adding array valuesThe simple name for this annotation name)Adds a member value pair which is of type array to this annotation |
| clazz | back to summary |
|---|---|
| private final JClass clazz The | |
| memberValues | back to summary |
|---|---|
| private Map<String, JAnnotationValue> memberValues Map of member values. | |
| JAnnotationUse | back to summary |
|---|---|
| pack-priv JAnnotationUse(JClass clazz) | |
| addValue | back to summary |
|---|---|
| private void addValue(String name, JAnnotationValue annotationValue) | |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(Class<? extends Annotation> clazz)
Deprecated This can be used to add annotations inside annotations for e.g @XmlCollection(values= @XmlCollectionItem(type=Foo.class))
| |
| annotationParam | back to summary |
|---|---|
| public JAnnotationUse annotationParam(String name, Class<? extends Annotation> value) Adds a member value pair to this annotation For adding class values as param
| |
| generate | back to summary |
|---|---|
| public void generate(JFormatter f) Implements com.
| |
| getAnnotationClass | back to summary |
|---|---|
| public JClass getAnnotationClass() | |
| getAnnotationMembers | back to summary |
|---|---|
| public Map | |
| isOptimizable | back to summary |
|---|---|
| private boolean isOptimizable() | |
| owner | back to summary |
|---|---|
| private JCodeModel owner() | |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, boolean value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, byte value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, char value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, double value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, float value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, long value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, short value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, int value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, String value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, final Enum<?> value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, JEnumConstant value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, final Class<?> value) Adds a member value pair to this annotation This can be used for e.g to specify
For adding a value of Class<? extends Annotation>
annotationParam(java.
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, JAnnotationValue value) Adds a member value pair to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, JType type) Adds a member value pair to this annotation based on the type represented by the given JType
| |
| param | back to summary |
|---|---|
| public JAnnotationUse param(String name, JExpression value) Adds a member value pair to this annotation.
| |
| paramArray | back to summary |
|---|---|
| public JAnnotationArrayMember paramArray(String name) Adds a member value pair which is of type array to this annotation
| |