Java 类org.codehaus.jackson.map.ser.std.ToStringSerializer 实例源码

项目:ingress-indonesia-dev    文件:BasicSerializerFactory.java   
public final JsonSerializer<?> findSerializerByAddonType(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean)
{
  Class localClass = paramJavaType.getRawClass();
  if (Iterator.class.isAssignableFrom(localClass))
    return buildIteratorSerializer(paramSerializationConfig, paramJavaType, paramBasicBeanDescription, paramBeanProperty, paramBoolean);
  if (Iterable.class.isAssignableFrom(localClass))
    return buildIterableSerializer(paramSerializationConfig, paramJavaType, paramBasicBeanDescription, paramBeanProperty, paramBoolean);
  if (CharSequence.class.isAssignableFrom(localClass))
    return ToStringSerializer.instance;
  return null;
}