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


Java AnnotatedMember.getRawType方法代码示例

本文整理汇总了Java中com.fasterxml.jackson.databind.introspect.AnnotatedMember.getRawType方法的典型用法代码示例。如果您正苦于以下问题:Java AnnotatedMember.getRawType方法的具体用法?Java AnnotatedMember.getRawType怎么用?Java AnnotatedMember.getRawType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.fasterxml.jackson.databind.introspect.AnnotatedMember的用法示例。


在下文中一共展示了AnnotatedMember.getRawType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addReferenceProperties

import com.fasterxml.jackson.databind.introspect.AnnotatedMember; //导入方法依赖的package包/类
protected void addReferenceProperties(DeserializationContext paramDeserializationContext, BeanDescription paramBeanDescription, BeanDeserializerBuilder paramBeanDeserializerBuilder)
{
  Map localMap = paramBeanDescription.findBackReferenceProperties();
  if (localMap != null)
  {
    Iterator localIterator = localMap.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      String str = (String)localEntry.getKey();
      AnnotatedMember localAnnotatedMember = (AnnotatedMember)localEntry.getValue();
      Object localObject;
      if ((localAnnotatedMember instanceof AnnotatedMethod))
        localObject = ((AnnotatedMethod)localAnnotatedMember).getGenericParameterType(0);
      else
        localObject = localAnnotatedMember.getRawType();
      paramBeanDeserializerBuilder.addBackReferenceProperty(str, constructSettableProperty(paramDeserializationContext, paramBeanDescription, SimpleBeanPropertyDefinition.construct(paramDeserializationContext.getConfig(), localAnnotatedMember), (Type)localObject));
    }
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:21,代码来源:BeanDeserializerFactory.java

示例2: collectAndResolveSubtypes

import com.fasterxml.jackson.databind.introspect.AnnotatedMember; //导入方法依赖的package包/类
public Collection<NamedType> collectAndResolveSubtypes(AnnotatedMember paramAnnotatedMember, MapperConfig<?> paramMapperConfig, AnnotationIntrospector paramAnnotationIntrospector, JavaType paramJavaType)
{
  Class localClass;
  if (paramJavaType == null)
    localClass = paramAnnotatedMember.getRawType();
  else
    localClass = paramJavaType.getRawClass();
  HashMap localHashMap = new HashMap();
  if (this._registeredSubtypes != null)
  {
    Iterator localIterator2 = this._registeredSubtypes.iterator();
    while (localIterator2.hasNext())
    {
      NamedType localNamedType3 = (NamedType)localIterator2.next();
      if (localClass.isAssignableFrom(localNamedType3.getType()))
        _collectAndResolve(AnnotatedClass.constructWithoutSuperTypes(localNamedType3.getType(), paramAnnotationIntrospector, paramMapperConfig), localNamedType3, paramMapperConfig, paramAnnotationIntrospector, localHashMap);
    }
  }
  List localList = paramAnnotationIntrospector.findSubtypes(paramAnnotatedMember);
  if (localList != null)
  {
    Iterator localIterator1 = localList.iterator();
    while (localIterator1.hasNext())
    {
      NamedType localNamedType2 = (NamedType)localIterator1.next();
      _collectAndResolve(AnnotatedClass.constructWithoutSuperTypes(localNamedType2.getType(), paramAnnotationIntrospector, paramMapperConfig), localNamedType2, paramMapperConfig, paramAnnotationIntrospector, localHashMap);
    }
  }
  NamedType localNamedType1 = new NamedType(localClass, null);
  _collectAndResolve(AnnotatedClass.constructWithoutSuperTypes(localClass, paramAnnotationIntrospector, paramMapperConfig), localNamedType1, paramMapperConfig, paramAnnotationIntrospector, localHashMap);
  return new ArrayList(localHashMap.values());
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:33,代码来源:StdSubtypeResolver.java

示例3: removeIgnorableTypes

import com.fasterxml.jackson.databind.introspect.AnnotatedMember; //导入方法依赖的package包/类
protected void removeIgnorableTypes(SerializationConfig paramSerializationConfig, BeanDescription paramBeanDescription, List<BeanPropertyDefinition> paramList)
{
  AnnotationIntrospector localAnnotationIntrospector = paramSerializationConfig.getAnnotationIntrospector();
  HashMap localHashMap = new HashMap();
  Iterator localIterator = paramList.iterator();
  while (localIterator.hasNext())
  {
    AnnotatedMember localAnnotatedMember = ((BeanPropertyDefinition)localIterator.next()).getAccessor();
    if (localAnnotatedMember == null)
    {
      localIterator.remove();
    }
    else
    {
      Class localClass = localAnnotatedMember.getRawType();
      Boolean localBoolean1 = (Boolean)localHashMap.get(localClass);
      Object localObject = localBoolean1;
      if (localBoolean1 == null)
      {
        Boolean localBoolean2 = localAnnotationIntrospector.isIgnorableType(paramSerializationConfig.introspectClassAnnotations(localClass).getClassInfo());
        localObject = localBoolean2;
        if (localBoolean2 == null)
          localObject = Boolean.FALSE;
        localHashMap.put(localClass, localObject);
      }
      if (((Boolean)localObject).booleanValue())
        localIterator.remove();
    }
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:31,代码来源:BeanSerializerFactory.java


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