public interface AnnotationTypeBuilder extends Type
Type interface. The Annotation Type contains set of methods which are
capable to provide information about other Annotation Types and Annotation
Parameters.AnnotationType| Modifier and Type | Method and Description |
|---|---|
AnnotationTypeBuilder |
addAnnotation(String packageName,
String name)
The method creates new AnnotationTypeBuilder containing specified package
name an annotation name.
|
boolean |
addParameter(String paramName,
String value)
Adds the parameter into List of parameters for Annotation Type.
|
boolean |
addParameters(String paramName,
List<String> values)
Adds the parameter with specified List of parameter values into List of
parameters for Annotation Type.
|
AnnotationType |
toInstance()
Returns
new immutable instance of Annotation Type
with values assigned in current instance of Annotation Type Builder. |
getFullyQualifiedName, getName, getPackageNameAnnotationTypeBuilder addAnnotation(String packageName, String name)
null
references. In case that any of parameters contains null the
method SHOULD thrown IllegalArgumentExceptionpackageName - Package Name of Annotation Typename - Name of Annotation Typenew instance of Annotation Type Builder.boolean addParameter(String paramName, String value)
null references.
In case that any of parameters contains null the method
SHOULD thrown IllegalArgumentExceptionparamName - Parameter Namevalue - Parameter Valuetrue if the parameter has been successfully assigned
for Annotation Typeboolean addParameters(String paramName, List<String> values)
null references.
In case that any of parameters contains null the method
SHOULD thrown IllegalArgumentExceptionparamName - Parameter Namevalues - List of Values bounded to Parameter Nametrue if the parameter has been successfully assigned
for Annotation TypeAnnotationType toInstance()
new immutable instance of Annotation Type
with values assigned in current instance of Annotation Type Builder. new immutable instance of Annotation Type.Copyright © 2014. All rights reserved.