public Collection<NamedType> collectAndResolveSubtypes(AnnotatedClass paramAnnotatedClass, MapperConfig<?> paramMapperConfig, AnnotationIntrospector paramAnnotationIntrospector) { HashMap localHashMap = new HashMap(); if (this._registeredSubtypes != null) { Class localClass = paramAnnotatedClass.getRawType(); Iterator localIterator = this._registeredSubtypes.iterator(); while (localIterator.hasNext()) { NamedType localNamedType = (NamedType)localIterator.next(); if (!localClass.isAssignableFrom(localNamedType.getType())) continue; _collectAndResolve(AnnotatedClass.constructWithoutSuperTypes(localNamedType.getType(), paramAnnotationIntrospector, paramMapperConfig), localNamedType, paramMapperConfig, paramAnnotationIntrospector, localHashMap); } } _collectAndResolve(paramAnnotatedClass, new NamedType(paramAnnotatedClass.getRawType(), null), paramMapperConfig, paramAnnotationIntrospector, localHashMap); return new ArrayList(localHashMap.values()); }
protected TypeIdResolver idResolver(MapperConfig<?> paramMapperConfig, JavaType paramJavaType, Collection<NamedType> paramCollection, boolean paramBoolean1, boolean paramBoolean2) { if (this._customIdResolver != null) return this._customIdResolver; if (this._idType == null) throw new IllegalStateException("Can not build, 'init()' not yet called"); switch (1.$SwitchMap$org$codehaus$jackson$annotate$JsonTypeInfo$Id[this._idType.ordinal()]) { default: throw new IllegalStateException("Do not know how to construct standard type id resolver for idType: " + this._idType); case 1: return new ClassNameIdResolver(paramJavaType, paramMapperConfig.getTypeFactory()); case 2: return new MinimalClassNameIdResolver(paramJavaType, paramMapperConfig.getTypeFactory()); case 3: } return TypeNameIdResolver.construct(paramMapperConfig, paramJavaType, paramCollection, paramBoolean1, paramBoolean2); }
public Collection<NamedType> collectAndResolveSubtypes(AnnotatedClass paramAnnotatedClass, MapperConfig<?> paramMapperConfig, AnnotationIntrospector paramAnnotationIntrospector) { HashMap localHashMap = new HashMap(); if (this._registeredSubtypes != null) { Class localClass = paramAnnotatedClass.getRawType(); Iterator localIterator = this._registeredSubtypes.iterator(); while (localIterator.hasNext()) { NamedType localNamedType = (NamedType)localIterator.next(); if (localClass.isAssignableFrom(localNamedType.getType())) _collectAndResolve(AnnotatedClass.constructWithoutSuperTypes(localNamedType.getType(), paramAnnotationIntrospector, paramMapperConfig), localNamedType, paramMapperConfig, paramAnnotationIntrospector, localHashMap); } } _collectAndResolve(paramAnnotatedClass, new NamedType(paramAnnotatedClass.getRawType(), null), paramMapperConfig, paramAnnotationIntrospector, localHashMap); return new ArrayList(localHashMap.values()); }
protected TypeIdResolver idResolver(MapperConfig<?> paramMapperConfig, JavaType paramJavaType, Collection<NamedType> paramCollection, boolean paramBoolean1, boolean paramBoolean2) { if (this._customIdResolver != null) return this._customIdResolver; if (this._idType == null) throw new IllegalStateException("Can not build, 'init()' not yet called"); switch (StdTypeResolverBuilder.1.$SwitchMap$org$codehaus$jackson$annotate$JsonTypeInfo$Id[this._idType.ordinal()]) { default: throw new IllegalStateException("Do not know how to construct standard type id resolver for idType: " + this._idType); case 1: return new ClassNameIdResolver(paramJavaType, paramMapperConfig.getTypeFactory()); case 2: return new MinimalClassNameIdResolver(paramJavaType, paramMapperConfig.getTypeFactory()); case 3: } return TypeNameIdResolver.construct(paramMapperConfig, paramJavaType, paramCollection, paramBoolean1, paramBoolean2); }
protected POJOPropertiesCollector(MapperConfig<?> paramMapperConfig, boolean paramBoolean, JavaType paramJavaType, AnnotatedClass paramAnnotatedClass) { this._config = paramMapperConfig; this._forSerialization = paramBoolean; this._type = paramJavaType; this._classDef = paramAnnotatedClass; boolean bool = paramMapperConfig.isAnnotationProcessingEnabled(); AnnotationIntrospector localAnnotationIntrospector = null; if (bool) localAnnotationIntrospector = this._config.getAnnotationIntrospector(); this._annotationIntrospector = localAnnotationIntrospector; if (this._annotationIntrospector == null) { this._visibilityChecker = this._config.getDefaultVisibilityChecker(); return; } this._visibilityChecker = this._annotationIntrospector.findAutoDetectVisibility(paramAnnotatedClass, this._config.getDefaultVisibilityChecker()); }
protected TypeNameIdResolver(MapperConfig<?> paramMapperConfig, JavaType paramJavaType, HashMap<String, String> paramHashMap, HashMap<String, JavaType> paramHashMap1) { super(paramJavaType, paramMapperConfig.getTypeFactory()); this._config = paramMapperConfig; this._typeToId = paramHashMap; this._idToType = paramHashMap1; }
public static TypeNameIdResolver construct(MapperConfig<?> paramMapperConfig, JavaType paramJavaType, Collection<NamedType> paramCollection, boolean paramBoolean1, boolean paramBoolean2) { if (paramBoolean1 == paramBoolean2) throw new IllegalArgumentException(); HashMap localHashMap1 = null; if (paramBoolean1) localHashMap1 = new HashMap(); HashMap localHashMap2 = null; if (paramBoolean2) localHashMap2 = new HashMap(); if (paramCollection != null) { Iterator localIterator = paramCollection.iterator(); if (localIterator.hasNext()) { NamedType localNamedType = (NamedType)localIterator.next(); Class localClass = localNamedType.getType(); if (localNamedType.hasName()); for (String str = localNamedType.getName(); ; str = _defaultTypeId(localClass)) { if (paramBoolean1) localHashMap1.put(localClass.getName(), str); if (!paramBoolean2) break; JavaType localJavaType = (JavaType)localHashMap2.get(str); if ((localJavaType != null) && (localClass.isAssignableFrom(localJavaType.getRawClass()))) break; localHashMap2.put(str, paramMapperConfig.constructType(localClass)); break; } } } return new TypeNameIdResolver(paramMapperConfig, paramJavaType, localHashMap1, localHashMap2); }
public Collection<NamedType> collectAndResolveSubtypes(AnnotatedMember paramAnnotatedMember, MapperConfig<?> paramMapperConfig, AnnotationIntrospector paramAnnotationIntrospector) { HashMap localHashMap = new HashMap(); if (this._registeredSubtypes != null) { Class localClass = paramAnnotatedMember.getRawType(); Iterator localIterator2 = this._registeredSubtypes.iterator(); while (localIterator2.hasNext()) { NamedType localNamedType3 = (NamedType)localIterator2.next(); if (!localClass.isAssignableFrom(localNamedType3.getType())) continue; _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(paramAnnotatedMember.getRawType(), null); _collectAndResolve(AnnotatedClass.constructWithoutSuperTypes(paramAnnotatedMember.getRawType(), paramAnnotationIntrospector, paramMapperConfig), localNamedType1, paramMapperConfig, paramAnnotationIntrospector, localHashMap); return new ArrayList(localHashMap.values()); }
public BasicBeanDescription(MapperConfig<?> paramMapperConfig, JavaType paramJavaType, AnnotatedClass paramAnnotatedClass) { super(paramJavaType); this._config = paramMapperConfig; this._annotationIntrospector = paramMapperConfig.getAnnotationIntrospector(); this._classInfo = paramAnnotatedClass; }
public BasicBeanDescription forClassAnnotations(MapperConfig<?> paramMapperConfig, Class<?> paramClass, ClassIntrospector.MixInResolver paramMixInResolver) { boolean bool = paramMapperConfig.isAnnotationProcessingEnabled(); AnnotationIntrospector localAnnotationIntrospector = paramMapperConfig.getAnnotationIntrospector(); if (bool); while (true) { AnnotatedClass localAnnotatedClass = AnnotatedClass.construct(paramClass, localAnnotationIntrospector, paramMixInResolver); return new BasicBeanDescription(paramMapperConfig, paramMapperConfig.constructType(paramClass), localAnnotatedClass); localAnnotationIntrospector = null; } }
public BasicBeanDescription forDirectClassAnnotations(MapperConfig<?> paramMapperConfig, Class<?> paramClass, ClassIntrospector.MixInResolver paramMixInResolver) { boolean bool = paramMapperConfig.isAnnotationProcessingEnabled(); AnnotationIntrospector localAnnotationIntrospector = paramMapperConfig.getAnnotationIntrospector(); if (bool); while (true) { AnnotatedClass localAnnotatedClass = AnnotatedClass.constructWithoutSuperTypes(paramClass, localAnnotationIntrospector, paramMixInResolver); return new BasicBeanDescription(paramMapperConfig, paramMapperConfig.constructType(paramClass), localAnnotatedClass); localAnnotationIntrospector = null; } }
public SerializedString findRootName(Class<?> paramClass, MapperConfig<?> paramMapperConfig) { monitorenter; try { ClassKey localClassKey = new ClassKey(paramClass); SerializedString localSerializedString; if (this._rootNames == null) { this._rootNames = new LRUMap(20, 200); BasicBeanDescription localBasicBeanDescription = (BasicBeanDescription)paramMapperConfig.introspectClassAnnotations(paramClass); String str = paramMapperConfig.getAnnotationIntrospector().findRootName(localBasicBeanDescription.getClassInfo()); if (str == null) str = paramClass.getSimpleName(); localSerializedString = new SerializedString(str); this._rootNames.put(localClassKey, localSerializedString); } while (true) { return localSerializedString; localSerializedString = (SerializedString)this._rootNames.get(localClassKey); if (localSerializedString == null) break; } } finally { monitorexit; } throw localObject; }
@Override public BasicBeanDescription forClassAnnotations(MapperConfig<?> cfg, Class<?> c, MixInResolver r) { AnnotationIntrospector ai = cfg.getAnnotationIntrospector(); AnnotatedClass ac = AnnotatedClass.construct(c, ai, r); return new BasicBeanDescription(TypeFactory.type(c), ac, ai); }
@Override public BasicBeanDescription forDirectClassAnnotations(MapperConfig<?> cfg, Class<?> c, MixInResolver r) { AnnotationIntrospector ai = cfg.getAnnotationIntrospector(); AnnotatedClass ac = AnnotatedClass.constructWithoutSuperTypes(c, ai, r); return new BasicBeanDescription(TypeFactory.type(c), ac, ai); }
public static TypeNameIdResolver construct(MapperConfig<?> paramMapperConfig, JavaType paramJavaType, Collection<NamedType> paramCollection, boolean paramBoolean1, boolean paramBoolean2) { if (paramBoolean1 == paramBoolean2) throw new IllegalArgumentException(); if (paramBoolean1); for (HashMap localHashMap1 = new HashMap(); ; localHashMap1 = null) { if (paramBoolean2); for (HashMap localHashMap2 = new HashMap(); ; localHashMap2 = null) { if (paramCollection != null) { Iterator localIterator = paramCollection.iterator(); if (localIterator.hasNext()) { NamedType localNamedType = (NamedType)localIterator.next(); Class localClass = localNamedType.getType(); if (localNamedType.hasName()); for (String str = localNamedType.getName(); ; str = _defaultTypeId(localClass)) { if (paramBoolean1) localHashMap1.put(localClass.getName(), str); if (!paramBoolean2) break; JavaType localJavaType = (JavaType)localHashMap2.get(str); if ((localJavaType != null) && (localClass.isAssignableFrom(localJavaType.getRawClass()))) break; localHashMap2.put(str, paramMapperConfig.constructType(localClass)); break; } } } return new TypeNameIdResolver(paramMapperConfig, paramJavaType, localHashMap1, localHashMap2); } } }
protected void _collectAndResolve(AnnotatedClass paramAnnotatedClass, NamedType paramNamedType, MapperConfig<?> paramMapperConfig, AnnotationIntrospector paramAnnotationIntrospector, HashMap<NamedType, NamedType> paramHashMap) { if (!paramNamedType.hasName()) { String str = paramAnnotationIntrospector.findTypeName(paramAnnotatedClass); if (str != null) paramNamedType = new NamedType(paramNamedType.getType(), str); } if (paramHashMap.containsKey(paramNamedType)) if ((paramNamedType.hasName()) && (!((NamedType)paramHashMap.get(paramNamedType)).hasName())) paramHashMap.put(paramNamedType, paramNamedType); List localList; do { return; paramHashMap.put(paramNamedType, paramNamedType); localList = paramAnnotationIntrospector.findSubtypes(paramAnnotatedClass); } while ((localList == null) || (localList.isEmpty())); Iterator localIterator = localList.iterator(); label114: NamedType localNamedType1; AnnotatedClass localAnnotatedClass; if (localIterator.hasNext()) { localNamedType1 = (NamedType)localIterator.next(); localAnnotatedClass = AnnotatedClass.constructWithoutSuperTypes(localNamedType1.getType(), paramAnnotationIntrospector, paramMapperConfig); if (localNamedType1.hasName()) break label194; } label194: for (NamedType localNamedType2 = new NamedType(localNamedType1.getType(), paramAnnotationIntrospector.findTypeName(localAnnotatedClass)); ; localNamedType2 = localNamedType1) { _collectAndResolve(localAnnotatedClass, localNamedType2, paramMapperConfig, paramAnnotationIntrospector, paramHashMap); break label114; break; } }
public Collection<NamedType> collectAndResolveSubtypes(AnnotatedMember paramAnnotatedMember, MapperConfig<?> paramMapperConfig, AnnotationIntrospector paramAnnotationIntrospector) { HashMap localHashMap = new HashMap(); if (this._registeredSubtypes != null) { Class localClass = paramAnnotatedMember.getRawType(); 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(paramAnnotatedMember.getRawType(), null); _collectAndResolve(AnnotatedClass.constructWithoutSuperTypes(paramAnnotatedMember.getRawType(), paramAnnotationIntrospector, paramMapperConfig), localNamedType1, paramMapperConfig, paramAnnotationIntrospector, localHashMap); return new ArrayList(localHashMap.values()); }
protected BasicBeanDescription(MapperConfig<?> paramMapperConfig, JavaType paramJavaType, AnnotatedClass paramAnnotatedClass, List<BeanPropertyDefinition> paramList) { super(paramJavaType); this._config = paramMapperConfig; if (paramMapperConfig == null); for (AnnotationIntrospector localAnnotationIntrospector = null; ; localAnnotationIntrospector = paramMapperConfig.getAnnotationIntrospector()) { this._annotationIntrospector = localAnnotationIntrospector; this._classInfo = paramAnnotatedClass; this._properties = paramList; return; } }
@Override public String nameForField(MapperConfig<?> config, AnnotatedField field, String defaultName) { return convert(defaultName); }
@Override public String nameForGetterMethod(MapperConfig<?> config, AnnotatedMethod method, String defaultName) { return convert(defaultName); }
@Override public String nameForSetterMethod(MapperConfig<?> config, AnnotatedMethod method, String defaultName) { return convert(defaultName); }
public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> paramMapperConfig, AnnotatedMember paramAnnotatedMember, JavaType paramJavaType) { if (!paramJavaType.isContainerType()) throw new IllegalArgumentException("Must call method with a container type (got " + paramJavaType + ")"); return _findTypeResolver(paramMapperConfig, paramAnnotatedMember, paramJavaType); }
public TypeResolverBuilder<?> findPropertyTypeResolver(MapperConfig<?> paramMapperConfig, AnnotatedMember paramAnnotatedMember, JavaType paramJavaType) { if (paramJavaType.isContainerType()) return null; return _findTypeResolver(paramMapperConfig, paramAnnotatedMember, paramJavaType); }
public TypeResolverBuilder<?> findTypeResolver(MapperConfig<?> paramMapperConfig, AnnotatedClass paramAnnotatedClass, JavaType paramJavaType) { return _findTypeResolver(paramMapperConfig, paramAnnotatedClass, paramJavaType); }
public SerializedString findRootName(JavaType paramJavaType, MapperConfig<?> paramMapperConfig) { return findRootName(paramJavaType.getRawClass(), paramMapperConfig); }
public static BasicBeanDescription forOtherUse(MapperConfig<?> paramMapperConfig, JavaType paramJavaType, AnnotatedClass paramAnnotatedClass) { return new BasicBeanDescription(paramMapperConfig, paramJavaType, paramAnnotatedClass, Collections.emptyList()); }