@Beta
public interface AnnotationReferenceBuildContext
| Modifier and Type | Method and Description |
|---|---|
void |
set(String name,
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(String name,
AnnotationReference... value)
Sets the given value for the given annotation element name.
|
void |
setBooleanValue(String name,
boolean... value)
Sets the given value for the given annotation element name.
|
void |
setByteValue(String name,
byte... value)
Sets the given value for the given annotation element name.
|
void |
setCharValue(String name,
char... value)
Sets the given value for the given annotation element name.
|
void |
setClassValue(String name,
TypeReference... value)
Sets the given value for the given annotation element name.
|
void |
setDoubleValue(String name,
double... value)
Sets the given value for the given annotation element name.
|
void |
setEnumValue(String name,
EnumerationValueDeclaration... value)
Sets the given value for the given annotation element name.
|
void |
setFloatValue(String name,
float... value)
Sets the given value for the given annotation element name.
|
void |
setIntValue(String name,
int... value)
Sets the given value for the given annotation element name.
|
void |
setLongValue(String name,
long... value)
Sets the given value for the given annotation element name.
|
void |
setShortValue(String name,
short... value)
Sets the given value for the given annotation element name.
|
void |
setStringValue(String name,
String... value)
Sets the given value for the given annotation element name.
|
void set(String name, 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.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(String name, int... value)
name - a valid name of a property of the annotation type.value - a non-null value arrayIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setLongValue(String name, long... value)
name - a valid name of a property of the annotation type.value - a non-null value arrayIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setShortValue(String name, short... value)
name - a valid name of a property of the annotation type.value - a non-null value arrayIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setDoubleValue(String name, double... value)
name - a valid name of a property of the annotation type.value - a non-null value arrayIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setFloatValue(String name, float... value)
name - a valid name of a property of the annotation type.value - a non-null value arrayIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setByteValue(String name, byte... value)
name - a valid name of a property of the annotation type.value - a non-null value arrayIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setBooleanValue(String name, boolean... value)
name - a valid name of a property of the annotation type.value - a non-null value arrayIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setCharValue(String name, char... value)
name - a valid name of a property of the annotation type.value - a non-null value arrayIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setStringValue(String name, String... value)
name - a valid name of a property of the annotation type.value - a non-null value array without any null entriesIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setClassValue(String name, TypeReference... value)
name - a valid name of a property of the annotation type.value - a non-null value array without any null entriesIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setEnumValue(String name, EnumerationValueDeclaration... value)
name - a valid name of a property of the annotation type.value - a non-null value array without any null entriesIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.void setAnnotationValue(String name, AnnotationReference... value)
name - a valid name of a property of the annotation type.value - a non-null value array without any null entriesIllegalArgumentException - if the name does not point to a valid member of the
referenced annotation type.Copyright © 2015. All Rights Reserved.