当前位置: 首页>>代码示例>>Java>>正文


Java BeanDescription.getType方法代码示例

本文整理汇总了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;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:27,代码来源:AbstractDeserializer.java

示例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() + ")");
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:8,代码来源:BuilderBasedDeserializer.java

示例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;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:13,代码来源:BeanDeserializerFactory.java

示例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;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:41,代码来源:BeanDeserializerBase.java


注:本文中的com.fasterxml.jackson.databind.BeanDescription.getType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。