本文整理汇总了Java中com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper.expectAnyFormat方法的典型用法代码示例。如果您正苦于以下问题:Java JsonFormatVisitorWrapper.expectAnyFormat方法的具体用法?Java JsonFormatVisitorWrapper.expectAnyFormat怎么用?Java JsonFormatVisitorWrapper.expectAnyFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
的用法示例。
在下文中一共展示了JsonFormatVisitorWrapper.expectAnyFormat方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
JsonSerializer localJsonSerializer1 = this._valueSerializer;
Object localObject = localJsonSerializer1;
if (localJsonSerializer1 == null)
{
if (paramJavaType == null)
{
if (this._property != null)
paramJavaType = this._property.getType();
if (paramJavaType == null)
paramJavaType = paramJsonFormatVisitorWrapper.getProvider().constructType(this._accessorMethod.getReturnType());
}
JsonSerializer localJsonSerializer2 = paramJsonFormatVisitorWrapper.getProvider().findTypedValueSerializer(paramJavaType, false, this._property);
localObject = localJsonSerializer2;
if (localJsonSerializer2 == null)
{
paramJsonFormatVisitorWrapper.expectAnyFormat(paramJavaType);
return;
}
}
((JsonSerializer)localObject).acceptJsonFormatVisitor(paramJsonFormatVisitorWrapper, null);
}
示例2: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
{
/* 01-Jan-2010, tatu: Not 100% sure what we should say here:
* type is basically not known. This seems closest
* approximation
*/
visitor.expectAnyFormat(typeHint);
}
示例3: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
throws JsonMappingException
{
if (_valueSerializer != null) {
_valueSerializer.acceptJsonFormatVisitor(visitor, null);
} else {
visitor.expectAnyFormat(typeHint);
}
}
示例4: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
/**
* Default implementation specifies no format. This behavior is usually
* overriden by custom serializers.
*/
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
throws JsonMappingException
{
visitor.expectAnyFormat(typeHint);
}
示例5: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
if (paramJsonFormatVisitorWrapper != null)
paramJsonFormatVisitorWrapper.expectAnyFormat(paramJavaType);
}
示例6: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
public final void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
paramJsonFormatVisitorWrapper.expectAnyFormat(paramJavaType);
}
示例7: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
{
paramJsonFormatVisitorWrapper.expectAnyFormat(paramJavaType);
}
示例8: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
/**
* Default implementation simply calls {@link JsonFormatVisitorWrapper#expectAnyFormat(JavaType)}.
*
* @since 2.1
*/
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType type)
throws JsonMappingException
{
visitor.expectAnyFormat(type);
}
示例9: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
{
visitor.expectAnyFormat(typeHint);
}
示例10: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
{
visitor.expectAnyFormat(typeHint);
}
示例11: acceptJsonFormatVisitor
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper; //导入方法依赖的package包/类
@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) {
visitor.expectAnyFormat(typeHint);
}