public class AnnotationValueInfo extends Object implements Serializable
The field value can hold other javax.lang.model.element.* classes.
See: DtoGenerator.DtoClassGeneratorInstance.addAnnotationParam(com.sun.codemodel.JAnnotationUse, at.rseiler.spbee.core.pojo.AnnotationValueInfo)
and DtoGenerator.DtoClassGeneratorInstance.addAnnotationArrayMemberParam(com.sun.codemodel.JAnnotationArrayMember, at.rseiler.spbee.core.pojo.AnnotationValueInfo)
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValueInfo.Kind |
Modifier and Type | Field and Description |
---|---|
private AnnotationValueInfo.Kind |
kind |
private String |
name |
private static long |
serialVersionUID |
private String |
type |
private Object |
value |
Constructor and Description |
---|
AnnotationValueInfo(String name,
Object value,
String type,
AnnotationValueInfo.Kind kind)
Constructs a new AnnotationValueInfo.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValueInfo.Kind |
getKind() |
String |
getName()
Returns the name of the annotation parameter.
|
String |
getType() |
Object |
getValue()
Returns the value of the parameter.
|
String |
toString() |
private static final long serialVersionUID
private final String name
private final Object value
private final String type
private final AnnotationValueInfo.Kind kind
public AnnotationValueInfo(String name, Object value, String type, AnnotationValueInfo.Kind kind)
name
- the name of the annotation parametervalue
- the value of the annotation parameterkind
- the kind of the annotation parameterpublic String getName()
public Object getValue()
public String getType()
public AnnotationValueInfo.Kind getKind()
Copyright © 2015. All rights reserved.