public class JAnnotationArrayMember extends AbstractJAnnotationValueOwned implements IJAnnotatable
This class implements IJAnnotatable to allow new annotations to be
added as a member of the array.
AbstractJAnnotationValueOwned.FullClassNameExpr, AbstractJAnnotationValueOwned.JEnumConstantExpr| Constructor and Description |
|---|
JAnnotationArrayMember(JCodeModel owner) |
| Modifier and Type | Method and Description |
|---|---|
JAnnotationUse |
annotate(AbstractJClass clazz)
Adds a new annotation to the array.
|
JAnnotationUse |
annotate(Class<? extends Annotation> clazz)
Adds a new annotation to the array.
|
<W extends IJAnnotationWriter<?>> |
annotate2(Class<W> clazz)
Adds an annotation to this program element and returns a type-safe writer
to fill in the values of such annotations.
|
Collection<JAnnotationUse> |
annotations()
|
void |
generate(JFormatter f) |
Collection<AbstractJAnnotationValue> |
getAllAnnotations() |
JCodeModel |
owner()
Gets the owner code model object.
|
JAnnotationArrayMember |
param(AbstractJType type) |
JAnnotationArrayMember |
param(boolean value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(byte value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(char value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(Class<?> value)
Adds a class array member to this annotation
|
JAnnotationArrayMember |
param(double value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(Enum<?> aEnumConstant)
Adds a enum array member to this annotation
|
JAnnotationArrayMember |
param(float value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(IJExpression value)
Adds an expression array member to this annotation
|
JAnnotationArrayMember |
param(int value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(JEnumConstant value)
Adds a enum array member to this annotation
|
JAnnotationArrayMember |
param(long value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(short value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
param(String value)
Adds an array member to this annotation
|
JAnnotationArrayMember |
params(AbstractJType... values) |
JAnnotationArrayMember |
params(boolean... values) |
JAnnotationArrayMember |
params(byte... values) |
JAnnotationArrayMember |
params(char... values) |
JAnnotationArrayMember |
params(Class<?>... values) |
JAnnotationArrayMember |
params(double... values) |
JAnnotationArrayMember |
params(Enum<?>... values) |
JAnnotationArrayMember |
params(float... values) |
JAnnotationArrayMember |
params(IJExpression... values) |
JAnnotationArrayMember |
params(int... values) |
JAnnotationArrayMember |
params(JEnumConstant... values) |
JAnnotationArrayMember |
params(long... values) |
JAnnotationArrayMember |
params(short... values) |
JAnnotationArrayMember |
params(String... values) |
int |
size() |
wrap, wrappublic JAnnotationArrayMember(@Nonnull JCodeModel owner)
@Nonnull public JCodeModel owner()
IJOwned@Nonnull public JAnnotationArrayMember param(String value)
value - Adds a string value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull String... values)
@Nonnull public JAnnotationArrayMember param(boolean value)
value - Adds a boolean value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull boolean... values)
@Nonnull public JAnnotationArrayMember param(byte value)
value - Adds a byte value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull byte... values)
@Nonnull public JAnnotationArrayMember param(char value)
value - Adds a char value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull char... values)
@Nonnull public JAnnotationArrayMember param(double value)
value - Adds a double value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull double... values)
@Nonnull public JAnnotationArrayMember param(long value)
value - Adds a long value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull long... values)
@Nonnull public JAnnotationArrayMember param(short value)
value - Adds a short value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull short... values)
@Nonnull public JAnnotationArrayMember param(int value)
value - Adds an int value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull int... values)
@Nonnull public JAnnotationArrayMember param(float value)
value - Adds a float value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull float... values)
@Nonnull public JAnnotationArrayMember param(@Nonnull Enum<?> aEnumConstant)
aEnumConstant - Adds a enum value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull Enum<?>... values)
@Nonnull public JAnnotationArrayMember param(JEnumConstant value)
value - Adds a enum value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull JEnumConstant... values)
@Nonnull public JAnnotationArrayMember param(IJExpression value)
value - Adds an expression value to the array member@Nonnull public JAnnotationArrayMember params(@Nonnull IJExpression... values)
@Nonnull public JAnnotationArrayMember param(Class<?> value)
value - Adds a class value to the array memberJAnnotationArrayMember. More elements can be added by
calling the same method multiple times@Nonnull public JAnnotationArrayMember params(@Nonnull Class<?>... values)
@Nonnull public JAnnotationArrayMember param(AbstractJType type)
@Nonnull public JAnnotationArrayMember params(@Nonnull AbstractJType... values)
@Nonnull public JAnnotationUse annotate(@Nonnull Class<? extends Annotation> clazz)
annotate in interface IJAnnotatableclazz - The annotation class to annotate the program element withJAnnotationUse@Nonnull public JAnnotationUse annotate(@Nonnull AbstractJClass clazz)
annotate in interface IJAnnotatableclazz - The annotation class to annotate the program element withJAnnotationUse@Nonnull public <W extends IJAnnotationWriter<?>> W annotate2(@Nonnull Class<W> clazz)
IJAnnotatableannotate2 in interface IJAnnotatableW - Implementation typeclazz - Source class@Nonnull public Collection<JAnnotationUse> annotations()
annotations in interface IJAnnotatablenull.getAllAnnotations()@Nonnull public Collection<AbstractJAnnotationValue> getAllAnnotations()
@Nonnegative public int size()
public void generate(@Nonnull JFormatter f)
generate in interface IJGenerableCopyright © 2013–2015 Philip Helger. All rights reserved.