public final class GeneratedAnnotationUse extends AnnotationValue
Modifier and Type | Method and Description |
---|---|
GeneratedAnnotationUse |
annotate(Class<? extends Annotation> clazz)
|
GeneratedAnnotationUse |
annotationParam(String name,
Class<? extends Annotation> value)
Adds a member value pair to this annotation
For adding class values as param
|
void |
generate(Formatter f) |
TypeReference |
getAnnotationClass() |
Map<String,AnnotationValue> |
getAnnotationMembers() |
GeneratedAnnotationUse |
param(String name,
boolean value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
byte value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
char value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
Class<?> value)
Adds a member value pair to this annotation
This can be used for e.g to specify
|
GeneratedAnnotationUse |
param(String name,
double value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
Enum<?> value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
EnumConstant value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
float value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
GeneratedExpression value)
Adds a member value pair to this annotation.
|
GeneratedAnnotationUse |
param(String name,
int value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
long value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
short value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
String value)
Adds a member value pair to this annotation
|
GeneratedAnnotationUse |
param(String name,
Type type)
Adds a member value pair to this annotation based on the
type represented by the given Type
|
AnnotationArrayMember |
paramArray(String name)
Adds a member value pair which is of type array to this annotation
|
public TypeReference getAnnotationClass()
public Map<String,AnnotationValue> getAnnotationMembers()
public GeneratedAnnotationUse param(String name, boolean value)
name
- The simple name for this annotationvalue
- The boolean value for this annotationpublic GeneratedAnnotationUse param(String name, byte value)
name
- The simple name for this annotationvalue
- The byte member value for this annotationpublic GeneratedAnnotationUse param(String name, char value)
name
- The simple name for this annotationvalue
- The char member value for this annotationpublic GeneratedAnnotationUse param(String name, double value)
name
- The simple name for this annotationvalue
- The double member value for this annotationpublic GeneratedAnnotationUse param(String name, float value)
name
- The simple name for this annotationvalue
- The float member value for this annotationpublic GeneratedAnnotationUse param(String name, long value)
name
- The simple name for this annotationvalue
- The long member value for this annotationpublic GeneratedAnnotationUse param(String name, short value)
name
- The simple name for this annotationvalue
- The short member value for this annotationpublic GeneratedAnnotationUse param(String name, int value)
name
- The simple name for this annotationvalue
- The int member value for this annotationpublic GeneratedAnnotationUse param(String name, String value)
name
- The simple name for this annotationvalue
- The String member value for this annotationpublic GeneratedAnnotationUse annotationParam(String name, Class<? extends Annotation> value)
name
- The simple name for this annotationvalue
- The annotation class which is member value for this annotationparam(String, Class)
public GeneratedAnnotationUse param(String name, Enum<?> value)
name
- The simple name for this annotationvalue
- The enum class which is member value for this annotationpublic GeneratedAnnotationUse param(String name, EnumConstant value)
name
- The simple name for this annotationvalue
- The EnumConstant which is member value for this annotationpublic GeneratedAnnotationUse param(String name, Class<?> value)
@XmlCollectionItem(type=Integer.class);For adding a value of Class extends Annotation>
name
- The simple name for this annotation paramvalue
- The class type of the parampublic GeneratedAnnotationUse param(String name, Type type)
name
- The simple name for this annotation paramtype
- the Type representing the actual typepublic GeneratedAnnotationUse param(String name, GeneratedExpression value)
name
- The simple name for this annotationvalue
- The Expression which provides the contant value for this annotationpublic AnnotationArrayMember paramArray(String name)
name
- The simple name for this annotationAnnotationArrayMember
public GeneratedAnnotationUse annotate(Class<? extends Annotation> clazz)
AnnotationArrayMember.annotate(java.lang.Class<? extends java.lang.annotation.Annotation>)
clazz
- The annotation class to be includedpublic void generate(Formatter f)
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.