* the annotation mirror for Attribute
*/
protected void handleJson(AttributeMetaDesc attributeMetaDesc,
ClassDeclaration classDeclaration,
FieldDeclaration fieldDeclaration, AnnotationMirror attribute) {
AnnotationMirror json =
AnnotationMirrorUtil.getElementValueWithDefault(
attribute,
AnnotationConstants.json);
JsonAnnotation anno = new JsonAnnotation();
attributeMetaDesc.setJson(anno);
if(json == null){
return;
}
for(Map.Entry<AnnotationTypeElementDeclaration, AnnotationValue> entry
: json.getElementValues().entrySet()){
String sn = entry.getKey().getSimpleName();
if(sn.equals(AnnotationConstants.ignore)) {
anno.setIgnore(entry.getValue() != null ?
(Boolean)entry.getValue().getValue()
: false);