Package com.firefly.utils.json.support

Examples of com.firefly.utils.json.support.SerializerMetaInfo


          && (Modifier.isTransient(field.getModifiers())
          || field.isAnnotationPresent(Transient.class)))
        continue;

      Class<?> fieldClazz = method.getReturnType();
      SerializerMetaInfo fieldMetaInfo = new SerializerMetaInfo();
      fieldMetaInfo.setPropertyName(propertyName, false);
      fieldMetaInfo.setPropertyInvoke(new MethodInvoke(method));
     
      fieldMetaInfo.setSerializer(SerialStateMachine.getSerializerInCompiling(fieldClazz));
      fieldSet.add(fieldMetaInfo);
    }
   
    for(Field field : clazz.getFields()) { // public字段序列化构造
      if(Modifier.isTransient(field.getModifiers()) || field.isAnnotationPresent(Transient.class) || Modifier.isStatic(field.getModifiers()))
        continue;
     
      field.setAccessible(true);
      SerializerMetaInfo fieldMetaInfo = new SerializerMetaInfo();
      fieldMetaInfo.setPropertyName(field.getName(), false);
      fieldMetaInfo.setPropertyInvoke(new FieldInvoke(field));
      fieldMetaInfo.setSerializer(SerialStateMachine.getSerializerInCompiling(field.getType()));
      fieldSet.add(fieldMetaInfo);
    }
   
    serializerMetaInfos = fieldSet.toArray(EMPTY_ARRAY);
    if(serializerMetaInfos.length > 0) {
View Full Code Here

TOP

Related Classes of com.firefly.utils.json.support.SerializerMetaInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.