protected void handleJson(AttributeMetaDesc attributeMetaDesc,
ClassDeclaration classDeclaration,
FieldDeclaration fieldDeclaration, AnnotationMirror attribute) {
JsonAnnotation anno = new JsonAnnotation();
attributeMetaDesc.setJson(anno);
AnnotationMirror json =
DeclarationUtil.getAnnotationMirror(
env,
fieldDeclaration,
AnnotationConstants.Json);
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);