Java 类org.codehaus.jackson.map.TypeSerializer 实例源码

项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
protected BeanPropertyWriter _constructWriter(SerializationConfig paramSerializationConfig, TypeBindings paramTypeBindings, PropertyBuilder paramPropertyBuilder, boolean paramBoolean, String paramString, AnnotatedMember paramAnnotatedMember)
  throws JsonMappingException
{
  if (paramSerializationConfig.isEnabled(SerializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS))
    paramAnnotatedMember.fixAccess();
  JavaType localJavaType = paramAnnotatedMember.getType(paramTypeBindings);
  BeanProperty.Std localStd = new BeanProperty.Std(paramString, localJavaType, paramPropertyBuilder.getClassAnnotations(), paramAnnotatedMember);
  JsonSerializer localJsonSerializer = findSerializerFromAnnotation(paramSerializationConfig, paramAnnotatedMember, localStd);
  boolean bool = ClassUtil.isCollectionMapOrArray(localJavaType.getRawClass());
  TypeSerializer localTypeSerializer = null;
  if (bool)
    localTypeSerializer = findPropertyContentTypeSerializer(localJavaType, paramSerializationConfig, paramAnnotatedMember, localStd);
  BeanPropertyWriter localBeanPropertyWriter = paramPropertyBuilder.buildWriter(paramString, localJavaType, localJsonSerializer, findPropertyTypeSerializer(localJavaType, paramSerializationConfig, paramAnnotatedMember, localStd), localTypeSerializer, paramAnnotatedMember, paramBoolean);
  localBeanPropertyWriter.setViews(paramSerializationConfig.getAnnotationIntrospector().findSerializationViews(paramAnnotatedMember));
  return localBeanPropertyWriter;
}
项目:12306-android-Decompile    文件:ContainerSerializers.java   
protected AsArraySerializer(Class<?> paramClass, JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer, BeanProperty paramBeanProperty, JsonSerializer<Object> paramJsonSerializer)
{
  super(false);
  this._elementType = paramJavaType;
  boolean bool1;
  if (!paramBoolean)
  {
    bool1 = false;
    if (paramJavaType != null)
    {
      boolean bool2 = paramJavaType.isFinal();
      bool1 = false;
      if (!bool2);
    }
  }
  else
  {
    bool1 = true;
  }
  this._staticTyping = bool1;
  this._valueTypeSerializer = paramTypeSerializer;
  this._property = paramBeanProperty;
  this._elementSerializer = paramJsonSerializer;
  this._dynamicSerializers = PropertySerializerMap.emptyMap();
}
项目:12306-android-Decompile    文件:ObjectNode.java   
public void serializeWithType(JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonProcessingException
{
  paramTypeSerializer.writeTypePrefixForObject(this, paramJsonGenerator);
  if (this._children != null)
  {
    Iterator localIterator = this._children.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      paramJsonGenerator.writeFieldName((String)localEntry.getKey());
      ((BaseJsonNode)localEntry.getValue()).serialize(paramJsonGenerator, paramSerializerProvider);
    }
  }
  paramTypeSerializer.writeTypeSuffixForObject(this, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:MapSerializer.java   
public static MapSerializer construct(String[] paramArrayOfString, JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer, BeanProperty paramBeanProperty, JsonSerializer<Object> paramJsonSerializer1, JsonSerializer<Object> paramJsonSerializer2)
{
  HashSet localHashSet = toSet(paramArrayOfString);
  JavaType localJavaType2;
  JavaType localJavaType1;
  if (paramJavaType == null)
  {
    localJavaType2 = UNSPECIFIED_TYPE;
    localJavaType1 = localJavaType2;
    if (!paramBoolean)
      if ((localJavaType2 == null) || (!localJavaType2.isFinal()))
        break label75;
  }
  label75: for (paramBoolean = true; ; paramBoolean = false)
  {
    return new MapSerializer(localHashSet, localJavaType1, localJavaType2, paramBoolean, paramTypeSerializer, paramJsonSerializer1, paramJsonSerializer2, paramBeanProperty);
    localJavaType1 = paramJavaType.getKeyType();
    localJavaType2 = paramJavaType.getContentType();
    break;
  }
}
项目:12306-android-Decompile    文件:MapSerializer.java   
public void serializeWithType(Map<?, ?> paramMap, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForObject(paramMap, paramJsonGenerator);
  if (!paramMap.isEmpty())
  {
    if (this._valueSerializer == null)
      break label42;
    serializeFieldsUsing(paramMap, paramJsonGenerator, paramSerializerProvider, this._valueSerializer);
  }
  while (true)
  {
    paramTypeSerializer.writeTypeSuffixForObject(paramMap, paramJsonGenerator);
    return;
    label42: serializeFields(paramMap, paramJsonGenerator, paramSerializerProvider);
  }
}
项目:12306-android-Decompile    文件:StdSerializerProvider.java   
public JsonSerializer<Object> findTypedValueSerializer(Class<?> paramClass, boolean paramBoolean, BeanProperty paramBeanProperty)
  throws JsonMappingException
{
  JsonSerializer localJsonSerializer1 = this._knownSerializers.typedValueSerializer(paramClass);
  if (localJsonSerializer1 != null)
    return localJsonSerializer1;
  JsonSerializer localJsonSerializer2 = this._serializerCache.typedValueSerializer(paramClass);
  if (localJsonSerializer2 != null)
    return localJsonSerializer2;
  Object localObject = findValueSerializer(paramClass, paramBeanProperty);
  TypeSerializer localTypeSerializer = this._serializerFactory.createTypeSerializer(this._config, this._config.constructType(paramClass), paramBeanProperty);
  if (localTypeSerializer != null)
    localObject = new WrappedSerializer(localTypeSerializer, (JsonSerializer)localObject);
  if (paramBoolean)
    this._serializerCache.addTypedSerializer(paramClass, (JsonSerializer)localObject);
  return (JsonSerializer<Object>)localObject;
}
项目:12306-android-Decompile    文件:StdSerializerProvider.java   
public JsonSerializer<Object> findTypedValueSerializer(JavaType paramJavaType, boolean paramBoolean, BeanProperty paramBeanProperty)
  throws JsonMappingException
{
  JsonSerializer localJsonSerializer1 = this._knownSerializers.typedValueSerializer(paramJavaType);
  if (localJsonSerializer1 != null)
    return localJsonSerializer1;
  JsonSerializer localJsonSerializer2 = this._serializerCache.typedValueSerializer(paramJavaType);
  if (localJsonSerializer2 != null)
    return localJsonSerializer2;
  Object localObject = findValueSerializer(paramJavaType, paramBeanProperty);
  TypeSerializer localTypeSerializer = this._serializerFactory.createTypeSerializer(this._config, paramJavaType, paramBeanProperty);
  if (localTypeSerializer != null)
    localObject = new WrappedSerializer(localTypeSerializer, (JsonSerializer)localObject);
  if (paramBoolean)
    this._serializerCache.addTypedSerializer(paramJavaType, (JsonSerializer)localObject);
  return (JsonSerializer<Object>)localObject;
}
项目:12306-android-Decompile    文件:BeanPropertyWriter.java   
public BeanPropertyWriter(AnnotatedMember paramAnnotatedMember, Annotations paramAnnotations, SerializedString paramSerializedString, JavaType paramJavaType1, JsonSerializer<Object> paramJsonSerializer, TypeSerializer paramTypeSerializer, JavaType paramJavaType2, Method paramMethod, Field paramField, boolean paramBoolean, Object paramObject)
{
  this._member = paramAnnotatedMember;
  this._contextAnnotations = paramAnnotations;
  this._name = paramSerializedString;
  this._declaredType = paramJavaType1;
  this._serializer = paramJsonSerializer;
  if (paramJsonSerializer == null);
  for (PropertySerializerMap localPropertySerializerMap = PropertySerializerMap.emptyMap(); ; localPropertySerializerMap = null)
  {
    this._dynamicSerializers = localPropertySerializerMap;
    this._typeSerializer = paramTypeSerializer;
    this._cfgSerializationType = paramJavaType2;
    this._accessorMethod = paramMethod;
    this._field = paramField;
    this._suppressNulls = paramBoolean;
    this._suppressableValue = paramObject;
    return;
  }
}
项目:12306-android-Decompile    文件:EnumMapSerializer.java   
public EnumMapSerializer(JavaType paramJavaType, boolean paramBoolean, EnumValues paramEnumValues, TypeSerializer paramTypeSerializer, BeanProperty paramBeanProperty, JsonSerializer<Object> paramJsonSerializer)
{
  super(EnumMap.class, false);
  boolean bool1;
  if (!paramBoolean)
  {
    bool1 = false;
    if (paramJavaType != null)
    {
      boolean bool2 = paramJavaType.isFinal();
      bool1 = false;
      if (!bool2);
    }
  }
  else
  {
    bool1 = true;
  }
  this._staticTyping = bool1;
  this._valueType = paramJavaType;
  this._keyEnums = paramEnumValues;
  this._valueTypeSerializer = paramTypeSerializer;
  this._property = paramBeanProperty;
  this._valueSerializer = paramJsonSerializer;
}
项目:12306-android-Decompile    文件:BasicSerializerFactory.java   
protected JsonSerializer<?> buildCollectionSerializer(SerializationConfig paramSerializationConfig, CollectionType paramCollectionType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer)
{
  Iterator localIterator = customSerializers().iterator();
  while (localIterator.hasNext())
  {
    JsonSerializer localJsonSerializer = ((Serializers)localIterator.next()).findCollectionSerializer(paramSerializationConfig, paramCollectionType, paramBasicBeanDescription, paramBeanProperty, paramTypeSerializer, paramJsonSerializer);
    if (localJsonSerializer != null)
      return localJsonSerializer;
  }
  Class localClass1 = paramCollectionType.getRawClass();
  if (EnumSet.class.isAssignableFrom(localClass1))
    return buildEnumSetSerializer(paramSerializationConfig, paramCollectionType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, paramTypeSerializer, paramJsonSerializer);
  Class localClass2 = paramCollectionType.getContentType().getRawClass();
  if (isIndexedList(localClass1))
  {
    if (localClass2 == String.class)
      return new IndexedStringListSerializer(paramBeanProperty);
    return ContainerSerializers.indexedListSerializer(paramCollectionType.getContentType(), paramBoolean, paramTypeSerializer, paramBeanProperty, paramJsonSerializer);
  }
  if (localClass2 == String.class)
    return new StringCollectionSerializer(paramBeanProperty);
  return ContainerSerializers.collectionSerializer(paramCollectionType.getContentType(), paramBoolean, paramTypeSerializer, paramBeanProperty, paramJsonSerializer);
}
项目:test-html-generator-plugin    文件:BeanSerializerBase.java   
@Override
public void serializeWithType(Object bean, JsonGenerator jgen, SerializerProvider provider,
        TypeSerializer typeSer)
    throws IOException, JsonGenerationException
{
    typeSer.writeTypePrefixForObject(bean, jgen);
    if (_propertyFilterId != null) {
        serializeFieldsFiltered(bean, jgen, provider);
    } else {
        serializeFields(bean, jgen, provider);
    }
    typeSer.writeTypeSuffixForObject(bean, jgen);
}
项目:12306-android-Decompile    文件:StdTypeResolverBuilder.java   
public TypeSerializer buildTypeSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, Collection<NamedType> paramCollection, BeanProperty paramBeanProperty)
{
  TypeIdResolver localTypeIdResolver = idResolver(paramSerializationConfig, paramJavaType, paramCollection, true, false);
  switch (1.$SwitchMap$org$codehaus$jackson$annotate$JsonTypeInfo$As[this._includeAs.ordinal()])
  {
  default:
    throw new IllegalStateException("Do not know how to construct standard type serializer for inclusion type: " + this._includeAs);
  case 1:
    return new AsArrayTypeSerializer(localTypeIdResolver, paramBeanProperty);
  case 2:
    return new AsPropertyTypeSerializer(localTypeIdResolver, paramBeanProperty, this._typeProperty);
  case 3:
  }
  return new AsWrapperTypeSerializer(localTypeIdResolver, paramBeanProperty);
}
项目:12306-android-Decompile    文件:ArraySerializers.java   
public final void serializeWithType(T paramT, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForArray(paramT, paramJsonGenerator);
  serializeContents(paramT, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForArray(paramT, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:JsonOrgJSONObjectSerializer.java   
public void serializeWithType(JSONObject paramJSONObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForObject(paramJSONObject, paramJsonGenerator);
  serializeContents(paramJSONObject, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForObject(paramJSONObject, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:ArraySerializers.java   
public void serializeWithType(char[] paramArrayOfChar, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  if (paramSerializerProvider.isEnabled(SerializationConfig.Feature.WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS))
  {
    paramTypeSerializer.writeTypePrefixForArray(paramArrayOfChar, paramJsonGenerator);
    _writeArrayContents(paramJsonGenerator, paramArrayOfChar);
    paramTypeSerializer.writeTypeSuffixForArray(paramArrayOfChar, paramJsonGenerator);
    return;
  }
  paramTypeSerializer.writeTypePrefixForScalar(paramArrayOfChar, paramJsonGenerator);
  paramJsonGenerator.writeString(paramArrayOfChar, 0, paramArrayOfChar.length);
  paramTypeSerializer.writeTypeSuffixForScalar(paramArrayOfChar, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
public TypeSerializer findPropertyContentTypeSerializer(JavaType paramJavaType, SerializationConfig paramSerializationConfig, AnnotatedMember paramAnnotatedMember, BeanProperty paramBeanProperty)
  throws JsonMappingException
{
  JavaType localJavaType = paramJavaType.getContentType();
  AnnotationIntrospector localAnnotationIntrospector = paramSerializationConfig.getAnnotationIntrospector();
  TypeResolverBuilder localTypeResolverBuilder = localAnnotationIntrospector.findPropertyContentTypeResolver(paramSerializationConfig, paramAnnotatedMember, paramJavaType);
  if (localTypeResolverBuilder == null)
    return createTypeSerializer(paramSerializationConfig, localJavaType, paramBeanProperty);
  return localTypeResolverBuilder.buildTypeSerializer(paramSerializationConfig, localJavaType, paramSerializationConfig.getSubtypeResolver().collectAndResolveSubtypes(paramAnnotatedMember, paramSerializationConfig, localAnnotationIntrospector), paramBeanProperty);
}
项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
public TypeSerializer findPropertyTypeSerializer(JavaType paramJavaType, SerializationConfig paramSerializationConfig, AnnotatedMember paramAnnotatedMember, BeanProperty paramBeanProperty)
  throws JsonMappingException
{
  AnnotationIntrospector localAnnotationIntrospector = paramSerializationConfig.getAnnotationIntrospector();
  TypeResolverBuilder localTypeResolverBuilder = localAnnotationIntrospector.findPropertyTypeResolver(paramSerializationConfig, paramAnnotatedMember, paramJavaType);
  if (localTypeResolverBuilder == null)
    return createTypeSerializer(paramSerializationConfig, paramJavaType, paramBeanProperty);
  return localTypeResolverBuilder.buildTypeSerializer(paramSerializationConfig, paramJavaType, paramSerializationConfig.getSubtypeResolver().collectAndResolveSubtypes(paramAnnotatedMember, paramSerializationConfig, localAnnotationIntrospector), paramBeanProperty);
}
项目:12306-android-Decompile    文件:JsonOrgJSONArraySerializer.java   
public void serializeWithType(JSONArray paramJSONArray, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForArray(paramJSONArray, paramJsonGenerator);
  serializeContents(paramJSONArray, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForArray(paramJSONArray, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:ContainerSerializers.java   
public final void serializeWithType(T paramT, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForArray(paramT, paramJsonGenerator);
  serializeContents(paramT, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForArray(paramT, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:ContainerSerializers.java   
public void serializeContentsUsing(Collection<?> paramCollection, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, JsonSerializer<Object> paramJsonSerializer)
  throws IOException, JsonGenerationException
{
  Iterator localIterator = paramCollection.iterator();
  TypeSerializer localTypeSerializer;
  int i;
  if (localIterator.hasNext())
  {
    localTypeSerializer = this._valueTypeSerializer;
    i = 0;
  }
  while (true)
  {
    Object localObject = localIterator.next();
    if (localObject == null);
    try
    {
      paramSerializerProvider.defaultSerializeNull(paramJsonGenerator);
      while (true)
      {
        i++;
        if (localIterator.hasNext())
          break;
        return;
        if (localTypeSerializer != null)
          break label92;
        paramJsonSerializer.serialize(localObject, paramJsonGenerator, paramSerializerProvider);
      }
    }
    catch (Exception localException)
    {
      while (true)
      {
        wrapAndThrow(paramSerializerProvider, localException, paramCollection, i);
        continue;
        label92: paramJsonSerializer.serializeWithType(localObject, paramJsonGenerator, paramSerializerProvider, localTypeSerializer);
      }
    }
  }
}
项目:12306-android-Decompile    文件:ContainerSerializers.java   
public void serializeContentsUsing(List<?> paramList, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, JsonSerializer<Object> paramJsonSerializer)
  throws IOException, JsonGenerationException
{
  int i = paramList.size();
  if (i == 0);
  while (true)
  {
    return;
    TypeSerializer localTypeSerializer = this._valueTypeSerializer;
    for (int j = 0; j < i; j++)
    {
      Object localObject = paramList.get(j);
      if (localObject == null);
      try
      {
        paramSerializerProvider.defaultSerializeNull(paramJsonGenerator);
        continue;
        if (localTypeSerializer == null)
          paramJsonSerializer.serialize(localObject, paramJsonGenerator, paramSerializerProvider);
      }
      catch (Exception localException)
      {
        wrapAndThrow(paramSerializerProvider, localException, paramList, j);
      }
      paramJsonSerializer.serializeWithType(localObject, paramJsonGenerator, paramSerializerProvider, localTypeSerializer);
    }
  }
}
项目:12306-android-Decompile    文件:ContainerSerializers.java   
public void serializeContents(Iterator<?> paramIterator, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider)
  throws IOException, JsonGenerationException
{
  TypeSerializer localTypeSerializer;
  Object localObject1;
  Object localObject2;
  if (paramIterator.hasNext())
  {
    localTypeSerializer = this._valueTypeSerializer;
    localObject1 = null;
    localObject2 = null;
  }
  while (true)
  {
    Object localObject3 = paramIterator.next();
    if (localObject3 == null)
      paramSerializerProvider.defaultSerializeNull(paramJsonGenerator);
    while (!paramIterator.hasNext())
    {
      return;
      Class localClass = localObject3.getClass();
      Object localObject4;
      if (localClass == localObject2)
        localObject4 = localObject1;
      while (true)
      {
        if (localTypeSerializer != null)
          break label107;
        ((JsonSerializer)localObject4).serialize(localObject3, paramJsonGenerator, paramSerializerProvider);
        break;
        localObject4 = paramSerializerProvider.findValueSerializer(localClass, this._property);
        localObject1 = localObject4;
        localObject2 = localClass;
      }
      label107: ((JsonSerializer)localObject4).serializeWithType(localObject3, paramJsonGenerator, paramSerializerProvider, localTypeSerializer);
    }
  }
}
项目:12306-android-Decompile    文件:MapSerializer.java   
protected MapSerializer(HashSet<String> paramHashSet, JavaType paramJavaType1, JavaType paramJavaType2, boolean paramBoolean, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer1, JsonSerializer<Object> paramJsonSerializer2, BeanProperty paramBeanProperty)
{
  super(Map.class, false);
  this._property = paramBeanProperty;
  this._ignoredEntries = paramHashSet;
  this._keyType = paramJavaType1;
  this._valueType = paramJavaType2;
  this._valueTypeIsStatic = paramBoolean;
  this._valueTypeSerializer = paramTypeSerializer;
  this._keySerializer = paramJsonSerializer1;
  this._valueSerializer = paramJsonSerializer2;
  this._dynamicValueSerializers = PropertySerializerMap.emptyMap();
}
项目:12306-android-Decompile    文件:StdSerializerProvider.java   
public final void serializeWithType(Object paramObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  if (paramSerializerProvider.isEnabled(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS))
    failForEmpty(paramObject);
  paramTypeSerializer.writeTypePrefixForObject(paramObject, paramJsonGenerator);
  paramTypeSerializer.writeTypeSuffixForObject(paramObject, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:ToStringSerializer.java   
public void serializeWithType(Object paramObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForScalar(paramObject, paramJsonGenerator);
  serialize(paramObject, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForScalar(paramObject, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:EnumMapSerializer.java   
public void serializeWithType(EnumMap<? extends Enum<?>, ?> paramEnumMap, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForObject(paramEnumMap, paramJsonGenerator);
  if (!paramEnumMap.isEmpty())
    serializeContents(paramEnumMap, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForObject(paramEnumMap, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:StdSerializers.java   
public final void serializeWithType(JsonSerializable paramJsonSerializable, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  if ((paramJsonSerializable instanceof JsonSerializableWithType))
  {
    ((JsonSerializableWithType)paramJsonSerializable).serializeWithType(paramJsonGenerator, paramSerializerProvider, paramTypeSerializer);
    return;
  }
  serialize(paramJsonSerializable, paramJsonGenerator, paramSerializerProvider);
}
项目:12306-android-Decompile    文件:IndexedStringListSerializer.java   
public void serializeWithType(List<String> paramList, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForArray(paramList, paramJsonGenerator);
  if (this._serializer == null)
    serializeContents(paramList, paramJsonGenerator, paramSerializerProvider);
  while (true)
  {
    paramTypeSerializer.writeTypeSuffixForArray(paramList, paramJsonGenerator);
    return;
    serializeUsingCustom(paramList, paramJsonGenerator, paramSerializerProvider);
  }
}
项目:12306-android-Decompile    文件:InetAddressSerializer.java   
public void serializeWithType(InetAddress paramInetAddress, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForScalar(paramInetAddress, paramJsonGenerator, InetAddress.class);
  serialize(paramInetAddress, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForScalar(paramInetAddress, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:TimeZoneSerializer.java   
public void serializeWithType(TimeZone paramTimeZone, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForScalar(paramTimeZone, paramJsonGenerator, TimeZone.class);
  serialize(paramTimeZone, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForScalar(paramTimeZone, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:ObjectArraySerializer.java   
public ObjectArraySerializer(JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer, BeanProperty paramBeanProperty, JsonSerializer<Object> paramJsonSerializer)
{
  super([Ljava.lang.Object.class, paramTypeSerializer, paramBeanProperty);
  this._elementType = paramJavaType;
  this._staticTyping = paramBoolean;
  this._dynamicSerializers = PropertySerializerMap.emptyMap();
  this._elementSerializer = paramJsonSerializer;
}
项目:12306-android-Decompile    文件:ObjectArraySerializer.java   
public void serializeContentsUsing(Object[] paramArrayOfObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, JsonSerializer<Object> paramJsonSerializer)
  throws IOException, JsonGenerationException
{
  int i = paramArrayOfObject.length;
  TypeSerializer localTypeSerializer = this._valueTypeSerializer;
  int j = 0;
  Object localObject1 = null;
  while (true)
  {
    if (j < i)
      try
      {
        localObject1 = paramArrayOfObject[j];
        if (localObject1 == null)
        {
          paramSerializerProvider.defaultSerializeNull(paramJsonGenerator);
          break label135;
        }
        if (localTypeSerializer == null)
          paramJsonSerializer.serialize(localObject1, paramJsonGenerator, paramSerializerProvider);
      }
      catch (IOException localIOException)
      {
        throw localIOException;
        paramJsonSerializer.serializeWithType(localObject1, paramJsonGenerator, paramSerializerProvider, localTypeSerializer);
      }
      catch (Exception localException)
      {
        for (Object localObject2 = localException; ((localObject2 instanceof InvocationTargetException)) && (((Throwable)localObject2).getCause() != null); localObject2 = ((Throwable)localObject2).getCause());
        if ((localObject2 instanceof Error))
          throw ((Error)localObject2);
        throw JsonMappingException.wrapWithPath((Throwable)localObject2, localObject1, j);
      }
    else
      return;
    label135: j++;
  }
}
项目:12306-android-Decompile    文件:StringCollectionSerializer.java   
public void serializeWithType(Collection<String> paramCollection, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForArray(paramCollection, paramJsonGenerator);
  if (this._serializer == null)
    serializeContents(paramCollection, paramJsonGenerator, paramSerializerProvider);
  while (true)
  {
    paramTypeSerializer.writeTypeSuffixForArray(paramCollection, paramJsonGenerator);
    return;
    serializeUsingCustom(paramCollection, paramJsonGenerator, paramSerializerProvider);
  }
}
项目:12306-android-Decompile    文件:RawSerializer.java   
public void serializeWithType(T paramT, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonProcessingException
{
  paramTypeSerializer.writeTypePrefixForScalar(paramT, paramJsonGenerator);
  serialize(paramT, paramJsonGenerator, paramSerializerProvider);
  paramTypeSerializer.writeTypeSuffixForScalar(paramT, paramJsonGenerator);
}
项目:12306-android-Decompile    文件:BeanSerializer.java   
public void serializeWithType(Object paramObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer)
  throws IOException, JsonGenerationException
{
  paramTypeSerializer.writeTypePrefixForObject(paramObject, paramJsonGenerator);
  if (this._propertyFilterId != null)
    serializeFieldsFiltered(paramObject, paramJsonGenerator, paramSerializerProvider);
  while (true)
  {
    paramTypeSerializer.writeTypeSuffixForObject(paramObject, paramJsonGenerator);
    return;
    serializeFields(paramObject, paramJsonGenerator, paramSerializerProvider);
  }
}
项目:12306-android-Decompile    文件:BasicSerializerFactory.java   
protected JsonSerializer<?> buildArraySerializer(SerializationConfig paramSerializationConfig, ArrayType paramArrayType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer)
{
  Class localClass = paramArrayType.getRawClass();
  Object localObject;
  if ([Ljava.lang.String.class == localClass)
    localObject = new ArraySerializers.StringArraySerializer(paramBeanProperty);
  do
  {
    return localObject;
    localObject = (JsonSerializer)_arraySerializers.get(localClass.getName());
  }
  while (localObject != null);
  return (JsonSerializer<?>)new ObjectArraySerializer(paramArrayType.getContentType(), paramBoolean, paramTypeSerializer, paramBeanProperty, paramJsonSerializer);
}
项目:12306-android-Decompile    文件:BasicSerializerFactory.java   
protected JsonSerializer<?> buildCollectionLikeSerializer(SerializationConfig paramSerializationConfig, CollectionLikeType paramCollectionLikeType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer)
{
  Iterator localIterator = customSerializers().iterator();
  while (localIterator.hasNext())
  {
    JsonSerializer localJsonSerializer = ((Serializers)localIterator.next()).findCollectionLikeSerializer(paramSerializationConfig, paramCollectionLikeType, paramBasicBeanDescription, paramBeanProperty, paramTypeSerializer, paramJsonSerializer);
    if (localJsonSerializer != null)
      return localJsonSerializer;
  }
  return null;
}
项目:12306-android-Decompile    文件:BasicSerializerFactory.java   
public JsonSerializer<?> buildContainerSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean)
{
  TypeSerializer localTypeSerializer = createTypeSerializer(paramSerializationConfig, paramJavaType.getContentType(), paramBeanProperty);
  if (localTypeSerializer != null)
    paramBoolean = false;
  JsonSerializer localJsonSerializer1;
  while (true)
  {
    localJsonSerializer1 = findContentSerializer(paramSerializationConfig, paramBasicBeanDescription.getClassInfo(), paramBeanProperty);
    if (!paramJavaType.isMapLikeType())
      break;
    MapLikeType localMapLikeType = (MapLikeType)paramJavaType;
    JsonSerializer localJsonSerializer2 = findKeySerializer(paramSerializationConfig, paramBasicBeanDescription.getClassInfo(), paramBeanProperty);
    if (localMapLikeType.isTrueMapType())
    {
      return buildMapSerializer(paramSerializationConfig, (MapType)localMapLikeType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localJsonSerializer2, localTypeSerializer, localJsonSerializer1);
      if (paramBoolean)
        continue;
      paramBoolean = usesStaticTyping(paramSerializationConfig, paramBasicBeanDescription, localTypeSerializer, paramBeanProperty);
      continue;
    }
    return buildMapLikeSerializer(paramSerializationConfig, localMapLikeType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localJsonSerializer2, localTypeSerializer, localJsonSerializer1);
  }
  if (paramJavaType.isCollectionLikeType())
  {
    CollectionLikeType localCollectionLikeType = (CollectionLikeType)paramJavaType;
    if (localCollectionLikeType.isTrueCollectionType())
      return buildCollectionSerializer(paramSerializationConfig, (CollectionType)localCollectionLikeType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localTypeSerializer, localJsonSerializer1);
    return buildCollectionLikeSerializer(paramSerializationConfig, localCollectionLikeType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localTypeSerializer, localJsonSerializer1);
  }
  if (paramJavaType.isArrayType())
    return buildArraySerializer(paramSerializationConfig, (ArrayType)paramJavaType, paramBasicBeanDescription, paramBeanProperty, paramBoolean, localTypeSerializer, localJsonSerializer1);
  return null;
}
项目:12306-android-Decompile    文件:BasicSerializerFactory.java   
protected JsonSerializer<?> buildEnumMapSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer)
{
  JavaType localJavaType = paramJavaType.getKeyType();
  boolean bool = localJavaType.isEnumType();
  EnumValues localEnumValues = null;
  if (bool)
    localEnumValues = EnumValues.construct(localJavaType.getRawClass(), paramSerializationConfig.getAnnotationIntrospector());
  return new EnumMapSerializer(paramJavaType.getContentType(), paramBoolean, localEnumValues, paramTypeSerializer, paramBeanProperty, paramJsonSerializer);
}
项目:12306-android-Decompile    文件:BasicSerializerFactory.java   
protected JsonSerializer<?> buildEnumSetSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer)
{
  JavaType localJavaType = paramJavaType.getContentType();
  if (!localJavaType.isEnumType())
    localJavaType = null;
  return ContainerSerializers.enumSetSerializer(localJavaType, paramBeanProperty);
}