This class implements JAnnotatable to allow
new annotations to be added as a member of the array.
| Modifier and Type | Field and Description |
|---|---|
| private final JCodeModel | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JAnnotationUse | annotate(Class<? extends Annotation> clazz)
Implements com. Adds a new annotation to the array. |
| public JAnnotationUse | annotate(JClass clazz)
Implements com. Adds a new annotation to the array. |
| public <W extends JAnnotationWriter | annotate2(Class<W> clazz)
Implements com. Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations. |
| public Collection | annotations()
Implements com. Read-only live view of all annotations on this |
| public Collection | |
| public void | |
| public JAnnotationArrayMember | |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a boolean value to the array member value)Adds an array member to this annotation |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a byte value to the array member value)Adds an array member to this annotation |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a char value to the array member value)Adds an array member to this annotation |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a double value to the array member value)Adds an array member to this annotation |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a long value to the array member value)Adds an array member to this annotation |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a short value to the array member value)Adds an array member to this annotation |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds an int value to the array member value)Adds an array member to this annotation |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a float value to the array member value)Adds an array member to this annotation |
| public JAnnotationArrayMember | |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a enum value to the array member value)Adds a enum array member to this annotation |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds an expression value to the array member value)Adds an expression array member to this annotation |
| public JAnnotationArrayMember | |
| public JAnnotationArrayMember | |
| public JAnnotationArrayMember | Returns: The JAnnotationArrayMember. More elements can be added by calling the same method multiple timesAdds a annotation to the array member value)
Deprecated
for removal since 2.3. use
annotate
Adds an annotation member to this annotation array This can be used for e.g @XmlCollection(values= @XmlCollectionItem(type=Foo.class)) |
| public boolean | removeAnnotation(JAnnotationUse annotation)
Implements com. Removes annotation from this program element. |
| owner | back to summary |
|---|---|
| private final JCodeModel owner | |
| values | back to summary |
|---|---|
| private final List<JAnnotationValue> values | |
| JAnnotationArrayMember | back to summary |
|---|---|
| pack-priv JAnnotationArrayMember(JCodeModel owner) | |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(Class<? extends Annotation> clazz) Implements com. Adds a new annotation to the array.
| |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(JClass clazz) Implements com. Adds a new annotation to the array.
| |
| annotate2 | back to summary |
|---|---|
| public <W extends JAnnotationWriter Implements com. Doc from com. Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.
| |
| annotations | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Read-only live view of all annotations on this
| |
| annotations2 | back to summary |
|---|---|
| public Collection | |
| generate | back to summary |
|---|---|
| public void generate(JFormatter f) Implements com.
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(String value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(boolean value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(byte value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(char value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(double value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(long value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(short value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(int value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(float value) Adds an array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(final Enum<?> value) Adds a enum array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(final JEnumConstant value) Adds a enum array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(final JExpression value) Adds an expression array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(final Class<?> value) Adds a class array member to this annotation
| |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(JType type) | |
| param | back to summary |
|---|---|
| public JAnnotationArrayMember param(JAnnotationUse value)
Adds an annotation member to this annotation array This can be used for e.g @XmlCollection(values= @XmlCollectionItem(type=Foo.class))
| |
| removeAnnotation | back to summary |
|---|---|
| public boolean removeAnnotation(JAnnotationUse annotation) Implements com. Doc from com. Removes annotation from this program element.
| |