本文整理匯總了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;
}