本文整理汇总了Java中com.fasterxml.jackson.databind.BeanDescription.getType方法的典型用法代码示例。如果您正苦于以下问题:Java BeanDescription.getType方法的具体用法?Java BeanDescription.getType怎么用?Java BeanDescription.getType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.fasterxml.jackson.databind.BeanDescription
的用法示例。
在下文中一共展示了BeanDescription.getType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AbstractDeserializer
import com.fasterxml.jackson.databind.BeanDescription; //导入方法依赖的package包/类
public AbstractDeserializer(BeanDeserializerBuilder paramBeanDeserializerBuilder, BeanDescription paramBeanDescription, Map<String, SettableBeanProperty> paramMap)
{
this._baseType = paramBeanDescription.getType();
this._objectIdReader = paramBeanDeserializerBuilder.getObjectIdReader();
this._backRefProperties = paramMap;
Class localClass = this._baseType.getRawClass();
this._acceptString = localClass.isAssignableFrom(String.class);
boolean bool1;
if ((localClass == Boolean.TYPE) || (localClass.isAssignableFrom(Boolean.class)))
bool1 = true;
else
bool1 = false;
this._acceptBoolean = bool1;
boolean bool2;
if ((localClass == Integer.TYPE) || (localClass.isAssignableFrom(Integer.class)))
bool2 = true;
else
bool2 = false;
this._acceptInt = bool2;
boolean bool3;
if ((localClass == Double.TYPE) || (localClass.isAssignableFrom(Double.class)))
bool3 = true;
else
bool3 = false;
this._acceptDouble = bool3;
}
示例2: BuilderBasedDeserializer
import com.fasterxml.jackson.databind.BeanDescription; //导入方法依赖的package包/类
public BuilderBasedDeserializer(BeanDeserializerBuilder paramBeanDeserializerBuilder, BeanDescription paramBeanDescription, BeanPropertyMap paramBeanPropertyMap, Map<String, SettableBeanProperty> paramMap, HashSet<String> paramHashSet, boolean paramBoolean1, boolean paramBoolean2)
{
super(paramBeanDeserializerBuilder, paramBeanDescription, paramBeanPropertyMap, paramMap, paramHashSet, paramBoolean1, paramBoolean2);
this._buildMethod = paramBeanDeserializerBuilder.getBuildMethod();
if (this._objectIdReader != null)
throw new IllegalArgumentException("Can not use Object Id with Builder-based deserialization (type " + paramBeanDescription.getType() + ")");
}
示例3: materializeAbstractType
import com.fasterxml.jackson.databind.BeanDescription; //导入方法依赖的package包/类
protected JavaType materializeAbstractType(DeserializationContext paramDeserializationContext, JavaType paramJavaType, BeanDescription paramBeanDescription)
{
JavaType localJavaType1 = paramBeanDescription.getType();
Iterator localIterator = this._factoryConfig.abstractTypeResolvers().iterator();
while (localIterator.hasNext())
{
JavaType localJavaType2 = ((AbstractTypeResolver)localIterator.next()).resolveAbstractType(paramDeserializationContext.getConfig(), localJavaType1);
if (localJavaType2 != null)
return localJavaType2;
}
return null;
}
示例4: BeanDeserializerBase
import com.fasterxml.jackson.databind.BeanDescription; //导入方法依赖的package包/类
protected BeanDeserializerBase(BeanDeserializerBuilder paramBeanDeserializerBuilder, BeanDescription paramBeanDescription, BeanPropertyMap paramBeanPropertyMap, Map<String, SettableBeanProperty> paramMap, HashSet<String> paramHashSet, boolean paramBoolean1, boolean paramBoolean2)
{
super(paramBeanDescription.getType());
this._classAnnotations = paramBeanDescription.getClassInfo().getAnnotations();
this._beanType = paramBeanDescription.getType();
this._valueInstantiator = paramBeanDeserializerBuilder.getValueInstantiator();
this._beanProperties = paramBeanPropertyMap;
this._backRefs = paramMap;
this._ignorableProps = paramHashSet;
this._ignoreAllUnknown = paramBoolean1;
this._anySetter = paramBeanDeserializerBuilder.getAnySetter();
List localList = paramBeanDeserializerBuilder.getInjectables();
ValueInjector[] arrayOfValueInjector;
if ((localList == null) || (localList.isEmpty()))
arrayOfValueInjector = null;
else
arrayOfValueInjector = (ValueInjector[])localList.toArray(new ValueInjector[localList.size()]);
this._injectables = arrayOfValueInjector;
this._objectIdReader = paramBeanDeserializerBuilder.getObjectIdReader();
boolean bool1;
if ((this._unwrappedPropertyHandler != null) || (this._valueInstantiator.canCreateUsingDelegate()) || (this._valueInstantiator.canCreateFromObjectWith()) || (!this._valueInstantiator.canCreateUsingDefault()))
bool1 = true;
else
bool1 = false;
this._nonStandardCreation = bool1;
JsonFormat.Value localValue = paramBeanDescription.findExpectedFormat(null);
JsonFormat.Shape localShape;
if (localValue == null)
localShape = null;
else
localShape = localValue.getShape();
this._serializationShape = localShape;
this._needViewProcesing = paramBoolean2;
boolean bool2;
if ((!this._nonStandardCreation) && (this._injectables == null) && (!this._needViewProcesing) && (this._objectIdReader != null))
bool2 = true;
else
bool2 = false;
this._vanillaProcessing = bool2;
}