Method Summary |
|
public JAnnotationUse | annotate(Class<? extends Annotation> clazz) |
public JAnnotationUse | annotationParam(String name, Class<? extends Annotation> value) Adds a member value pair to this annotation
For adding class values as param
See Also: JAnnotationUse.param(String,Class) Parameters: name - The simple name for this annotation Parameters: value - The annotation class which is member value for this annotationThe JAnnotationUse. |
public void | generate(JFormatter f) |
public JAnnotationUse | param(String name, boolean value) Adds a member value pair to this annotation
Parameters: name - The simple name for this annotation Parameters: value - The boolean value for this annotationThe JAnnotationUse. |
public JAnnotationUse | param(String name, int value) Adds a member value pair to this annotation
Parameters: name - The simple name for this annotation Parameters: value - The int member value for this annotationThe JAnnotationUse. |
public JAnnotationUse | param(String name, String value) Adds a member value pair to this annotation
Parameters: name - The simple name for this annotation Parameters: value - The String member value for this annotationThe JAnnotationUse. |
public JAnnotationUse | param(String name, Enum value) Adds a member value pair to this annotation
Parameters: name - The simple name for this annotation Parameters: value - The enum class which is member value for this annotationThe JAnnotationUse. |
public JAnnotationUse | param(String name, JEnumConstant value) Adds a member value pair to this annotation
Parameters: name - The simple name for this annotation Parameters: value - The JEnumConstant which is member value for this annotationThe JAnnotationUse. |
public JAnnotationUse | param(String name, Class value) Adds a member value pair to this annotation
This can be used for e.g to specify
@XmlCollectionItem(type=Integer.class);
For adding a value of Class extends Annotation>
#annotationParam(java.lang.String, java.lang.Class extends java.lang.annotation.Annotation>) Parameters: name - The simple name for this annotation param Parameters: value - The class type of the paramThe JAnnotationUse. |
public JAnnotationUse | param(String name, JType type) Adds a member value pair to this annotation based on the
type represented by the given JType
Parameters: name - The simple name for this annotation param Parameters: type - the JType representing the actual type The JAnnotationUse. |
public JAnnotationArrayMember | paramArray(String name) Adds a member value pair which is of type array to this annotation
Parameters: name - The simple name for this annotationThe JAnnotationArrayMember. |