/** * @deprecated Since 2.1; use variant that does not take 'property' argument */ @Deprecated public static ContainerSerializer<?> indexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) { return indexedListSerializer(elemType, staticTyping, vts, valueSerializer); }
/** * @deprecated Since 2.1; use variant that does not take 'property' argument */ @Deprecated public static ContainerSerializer<?> collectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) { return collectionSerializer(elemType, staticTyping, vts, valueSerializer); }
@Override protected ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return defaultSerializer._withValueTypeSerializer(vts); }
@Override protected ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return null; }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { throw new UnsupportedOperationException("not implemented"); }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return new BeanAsArraySerializer(_elementType, _staticTyping, vts, _property, _elementSerializer); }
public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return new ObjectArraySerializer(this._elementType, this._staticTyping, paramTypeSerializer, this._elementSerializer); }
public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return new IterableSerializer(this._elementType, this._staticTyping, paramTypeSerializer, this._property); }
@Deprecated public static ContainerSerializer<?> collectionSerializer(JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer, BeanProperty paramBeanProperty, JsonSerializer<Object> paramJsonSerializer) { return collectionSerializer(paramJavaType, paramBoolean, paramTypeSerializer, paramJsonSerializer); }
public static ContainerSerializer<?> collectionSerializer(JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer) { return new CollectionSerializer(paramJavaType, paramBoolean, paramTypeSerializer, null, paramJsonSerializer); }
@Deprecated public static ContainerSerializer<?> indexedListSerializer(JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer, BeanProperty paramBeanProperty, JsonSerializer<Object> paramJsonSerializer) { return indexedListSerializer(paramJavaType, paramBoolean, paramTypeSerializer, paramJsonSerializer); }
public static ContainerSerializer<?> indexedListSerializer(JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer, JsonSerializer<Object> paramJsonSerializer) { return new IndexedListSerializer(paramJavaType, paramBoolean, paramTypeSerializer, null, paramJsonSerializer); }
public static ContainerSerializer<?> iterableSerializer(JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer) { return new IterableSerializer(paramJavaType, paramBoolean, paramTypeSerializer, null); }
public static ContainerSerializer<?> iteratorSerializer(JavaType paramJavaType, boolean paramBoolean, TypeSerializer paramTypeSerializer) { return new IteratorSerializer(paramJavaType, paramBoolean, paramTypeSerializer, null); }
public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return new CollectionSerializer(this._elementType, this._staticTyping, paramTypeSerializer, this._property, this._elementSerializer); }
public void resolve(SerializerProvider paramSerializerProvider) { int i; if (this._filteredProps == null) i = 0; else i = this._filteredProps.length; int j = 0; int k = this._props.length; while (j < k) { BeanPropertyWriter localBeanPropertyWriter1 = this._props[j]; if ((!localBeanPropertyWriter1.willSuppressNulls()) && (!localBeanPropertyWriter1.hasNullSerializer())) { JsonSerializer localJsonSerializer2 = paramSerializerProvider.findNullValueSerializer(localBeanPropertyWriter1); if (localJsonSerializer2 != null) { localBeanPropertyWriter1.assignNullSerializer(localJsonSerializer2); if (j < i) { BeanPropertyWriter localBeanPropertyWriter3 = this._filteredProps[j]; if (localBeanPropertyWriter3 != null) localBeanPropertyWriter3.assignNullSerializer(localJsonSerializer2); } } } if (!localBeanPropertyWriter1.hasSerializer()) { JsonSerializer localJsonSerializer1 = findConvertingSerializer(paramSerializerProvider, localBeanPropertyWriter1); Object localObject1 = localJsonSerializer1; if (localJsonSerializer1 == null) { JavaType localJavaType1 = localBeanPropertyWriter1.getSerializationType(); Object localObject2 = localJavaType1; if (localJavaType1 == null) { JavaType localJavaType2 = paramSerializerProvider.constructType(localBeanPropertyWriter1.getGenericPropertyType()); localObject2 = localJavaType2; if (!localJavaType2.isFinal()) { if ((!((JavaType)localObject2).isContainerType()) && (((JavaType)localObject2).containedTypeCount() <= 0)) break label281; localBeanPropertyWriter1.setNonTrivialBaseType((JavaType)localObject2); break label281; } } localObject1 = paramSerializerProvider.findValueSerializer((JavaType)localObject2, localBeanPropertyWriter1); if (((JavaType)localObject2).isContainerType()) { TypeSerializer localTypeSerializer = (TypeSerializer)((JavaType)localObject2).getContentType().getTypeHandler(); if ((localTypeSerializer != null) && ((localObject1 instanceof ContainerSerializer))) localObject1 = ((ContainerSerializer)localObject1).withValueTypeSerializer(localTypeSerializer); } } localBeanPropertyWriter1.assignSerializer((JsonSerializer)localObject1); if (j < i) { BeanPropertyWriter localBeanPropertyWriter2 = this._filteredProps[j]; if (localBeanPropertyWriter2 != null) localBeanPropertyWriter2.assignSerializer((JsonSerializer)localObject1); } } label281: j++; } if (this._anyGetterWriter != null) this._anyGetterWriter.resolve(paramSerializerProvider); }
public final ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return this; }
public final ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return new FloatArraySerializer(this, this._property, paramTypeSerializer); }
public final ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return new LongArraySerializer(this, this._property, paramTypeSerializer); }
public final ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return new ShortArraySerializer(this, this._property, paramTypeSerializer); }
public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return new IteratorSerializer(this._elementType, this._staticTyping, paramTypeSerializer, this._property); }
public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return this; }
public final ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer paramTypeSerializer) { return new IndexedListSerializer(this._elementType, this._staticTyping, paramTypeSerializer, this._property, this._elementSerializer); }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return new ObjectArraySerializer(_elementType, _staticTyping, vts, _elementSerializer); }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return new IterableSerializer(_elementType, _staticTyping, vts, _property); }
/** * @since 2.1 */ public static ContainerSerializer<?> indexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer) { return new IndexedListSerializer(elemType, staticTyping, vts, null, valueSerializer); }
/** * @since 2.1 */ public static ContainerSerializer<?> collectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer) { return new CollectionSerializer(elemType, staticTyping, vts, null, valueSerializer); }
public static ContainerSerializer<?> iteratorSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts) { return new IteratorSerializer(elemType, staticTyping, vts, null); }
public static ContainerSerializer<?> iterableSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts) { return new IterableSerializer(elemType, staticTyping, vts, null); }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return new CollectionSerializer(_elementType, _staticTyping, vts, _property, _elementSerializer); }
/** * Booleans never add type info; hence, even if type serializer is suggested, * we'll ignore it... */ @Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return this; }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return new ShortArraySerializer(this, _property, vts); }
/** * Ints never add type info; hence, even if type serializer is suggested, * we'll ignore it... */ @Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return this; }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return new LongArraySerializer(this, _property, vts); }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return new FloatArraySerializer(this, _property, vts); }
/** * Doubles never add type info; hence, even if type serializer is suggested, * we'll ignore it... */ @Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return this; }
@Override public ContainerSerializer<?> _withValueTypeSerializer(TypeSerializer vts) { return new IteratorSerializer(_elementType, _staticTyping, vts, _property); }