當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。