@Beta
public interface AnnotationReferenceBuildContext
Modifier and Type | Method and Description |
---|---|
void |
set(java.lang.String name,
java.lang.Object value)
Sets the annotation property of the given name
Depending of the respective annotation type element, the following values
are permitted:
Short or short[]
Integer or int[]
Long or long[]
Float or float[]
Double or double[]
Boolean or boolean[]
TypeReference or TypeReference[] - for elements of type Class
|
void |
setAnnotationValue(java.lang.String name,
AnnotationReference... value)
Sets the given value for the given annotation element name.
|
void |
setBooleanValue(java.lang.String name,
boolean... value)
Sets the given value for the given annotation element name.
|
void |
setByteValue(java.lang.String name,
byte... value)
Sets the given value for the given annotation element name.
|
void |
setCharValue(java.lang.String name,
char... value)
Sets the given value for the given annotation element name.
|
void |
setClassValue(java.lang.String name,
TypeReference... value)
Sets the given value for the given annotation element name.
|
void |
setDoubleValue(java.lang.String name,
double... value)
Sets the given value for the given annotation element name.
|
void |
setEnumValue(java.lang.String name,
EnumerationValueDeclaration... value)
Sets the given value for the given annotation element name.
|
void |
setFloatValue(java.lang.String name,
float... value)
Sets the given value for the given annotation element name.
|
void |
setIntValue(java.lang.String name,
int... value)
Sets the given value for the given annotation element name.
|
void |
setLongValue(java.lang.String name,
long... value)
Sets the given value for the given annotation element name.
|
void |
setShortValue(java.lang.String name,
short... value)
Sets the given value for the given annotation element name.
|
void |
setStringValue(java.lang.String name,
java.lang.String... value)
Sets the given value for the given annotation element name.
|
void set(java.lang.String name, java.lang.Object value)
name
- a valid name of a property of the annotation type.value
- an annotation value or null if the annotation value should be removed.java.lang.IllegalArgumentException
- if the value is not valid. See explanation above or if the
name does not identify a method in the referenced
annotation type.void setIntValue(java.lang.String name, int... value)
name
- a valid name of a property of the annotation type.value
- a non-null value arrayjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setLongValue(java.lang.String name, long... value)
name
- a valid name of a property of the annotation type.value
- a non-null value arrayjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setShortValue(java.lang.String name, short... value)
name
- a valid name of a property of the annotation type.value
- a non-null value arrayjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setDoubleValue(java.lang.String name, double... value)
name
- a valid name of a property of the annotation type.value
- a non-null value arrayjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setFloatValue(java.lang.String name, float... value)
name
- a valid name of a property of the annotation type.value
- a non-null value arrayjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setByteValue(java.lang.String name, byte... value)
name
- a valid name of a property of the annotation type.value
- a non-null value arrayjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setBooleanValue(java.lang.String name, boolean... value)
name
- a valid name of a property of the annotation type.value
- a non-null value arrayjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setCharValue(java.lang.String name, char... value)
name
- a valid name of a property of the annotation type.value
- a non-null value arrayjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setStringValue(java.lang.String name, java.lang.String... value)
name
- a valid name of a property of the annotation type.value
- a non-null value array without any null entriesjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setClassValue(java.lang.String name, TypeReference... value)
name
- a valid name of a property of the annotation type.value
- a non-null value array without any null entriesjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setEnumValue(java.lang.String name, EnumerationValueDeclaration... value)
name
- a valid name of a property of the annotation type.value
- a non-null value array without any null entriesjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.void setAnnotationValue(java.lang.String name, AnnotationReference... value)
name
- a valid name of a property of the annotation type.value
- a non-null value array without any null entriesjava.lang.IllegalArgumentException
- if the name does not point to a valid member of the
referenced annotation type.