// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.fasterxml.jackson.databind.introspect; import com.fasterxml.jackson.core.Version; import com.fasterxml.jackson.databind.AnnotationIntrospector; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.PropertyName; import com.fasterxml.jackson.databind.cfg.MapperConfig; import com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder; import com.fasterxml.jackson.databind.util.ClassUtil; import com.fasterxml.jackson.databind.util.NameTransformer; import java.io.Serializable; import java.lang.annotation.Annotation; import java.util.ArrayList; import java.util.Collection; import java.util.List; // Referenced classes of package com.fasterxml.jackson.databind.introspect: // AnnotatedClass, VisibilityChecker, Annotated, AnnotatedMember, // ObjectIdInfo, AnnotatedMethod public class AnnotationIntrospectorPair extends AnnotationIntrospector implements Serializable { private static final long serialVersionUID = 1L; protected final AnnotationIntrospector _primary; protected final AnnotationIntrospector _secondary; public AnnotationIntrospectorPair(AnnotationIntrospector annotationintrospector, AnnotationIntrospector annotationintrospector1) { _primary = annotationintrospector; _secondary = annotationintrospector1; } public static AnnotationIntrospector create(AnnotationIntrospector annotationintrospector, AnnotationIntrospector annotationintrospector1) { if (annotationintrospector == null) { return annotationintrospector1; } if (annotationintrospector1 == null) { return annotationintrospector; } else { return new AnnotationIntrospectorPair(annotationintrospector, annotationintrospector1); } } protected boolean _isExplicitClassOrOb(Object obj, Class class1) { boolean flag1 = true; if (obj != null) goto _L2; else goto _L1 _L1: boolean flag = false; _L4: return flag; _L2: flag = flag1; if (!(obj instanceof Class)) goto _L4; else goto _L3 _L3: obj = (Class)obj; if (obj == class1) { break; /* Loop/switch isn't completed */ } flag = flag1; if (!ClassUtil.isBogusClass(((Class) (obj)))) goto _L4; else goto _L5 _L5: return false; } public Collection allIntrospectors() { return allIntrospectors(((Collection) (new ArrayList()))); } public Collection allIntrospectors(Collection collection) { _primary.allIntrospectors(collection); _secondary.allIntrospectors(collection); return collection; } public void findAndAddVirtualProperties(MapperConfig mapperconfig, AnnotatedClass annotatedclass, List list) { _primary.findAndAddVirtualProperties(mapperconfig, annotatedclass, list); _secondary.findAndAddVirtualProperties(mapperconfig, annotatedclass, list); } public VisibilityChecker findAutoDetectVisibility(AnnotatedClass annotatedclass, VisibilityChecker visibilitychecker) { visibilitychecker = _secondary.findAutoDetectVisibility(annotatedclass, visibilitychecker); return _primary.findAutoDetectVisibility(annotatedclass, visibilitychecker); } public Object findContentDeserializer(Annotated annotated) { Object obj = _primary.findContentDeserializer(annotated); if (_isExplicitClassOrOb(obj, com/fasterxml/jackson/databind/JsonDeserializer$None)) { return obj; } else { return _secondary.findContentDeserializer(annotated); } } public Object findContentSerializer(Annotated annotated) { Object obj = _primary.findContentSerializer(annotated); if (_isExplicitClassOrOb(obj, com/fasterxml/jackson/databind/JsonSerializer$None)) { return obj; } else { return _secondary.findContentSerializer(annotated); } } public com.fasterxml.jackson.annotation.JsonCreator.Mode findCreatorBinding(Annotated annotated) { com.fasterxml.jackson.annotation.JsonCreator.Mode mode = _primary.findCreatorBinding(annotated); if (mode != null) { return mode; } else { return _secondary.findCreatorBinding(annotated); } } public Object findDeserializationContentConverter(AnnotatedMember annotatedmember) { Object obj1 = _primary.findDeserializationContentConverter(annotatedmember); Object obj = obj1; if (obj1 == null) { obj = _secondary.findDeserializationContentConverter(annotatedmember); } return obj; } public Class findDeserializationContentType(Annotated annotated, JavaType javatype) { Class class2 = _primary.findDeserializationContentType(annotated, javatype); Class class1 = class2; if (class2 == null) { class1 = _secondary.findDeserializationContentType(annotated, javatype); } return class1; } public Object findDeserializationConverter(Annotated annotated) { Object obj1 = _primary.findDeserializationConverter(annotated); Object obj = obj1; if (obj1 == null) { obj = _secondary.findDeserializationConverter(annotated); } return obj; } public Class findDeserializationKeyType(Annotated annotated, JavaType javatype) { Class class2 = _primary.findDeserializationKeyType(annotated, javatype); Class class1 = class2; if (class2 == null) { class1 = _secondary.findDeserializationKeyType(annotated, javatype); } return class1; } public Class findDeserializationType(Annotated annotated, JavaType javatype) { Class class1 = _primary.findDeserializationType(annotated, javatype); if (class1 != null) { return class1; } else { return _secondary.findDeserializationType(annotated, javatype); } } public Object findDeserializer(Annotated annotated) { Object obj = _primary.findDeserializer(annotated); if (_isExplicitClassOrOb(obj, com/fasterxml/jackson/databind/JsonDeserializer$None)) { return obj; } else { return _secondary.findDeserializer(annotated); } } public String findEnumValue(Enum enum) { String s1 = _primary.findEnumValue(enum); String s = s1; if (s1 == null) { s = _secondary.findEnumValue(enum); } return s; } public Object findFilterId(Annotated annotated) { Object obj1 = _primary.findFilterId(annotated); Object obj = obj1; if (obj1 == null) { obj = _secondary.findFilterId(annotated); } return obj; } public Object findFilterId(AnnotatedClass annotatedclass) { Object obj1 = _primary.findFilterId(annotatedclass); Object obj = obj1; if (obj1 == null) { obj = _secondary.findFilterId(annotatedclass); } return obj; } public com.fasterxml.jackson.annotation.JsonFormat.Value findFormat(Annotated annotated) { com.fasterxml.jackson.annotation.JsonFormat.Value value1 = _primary.findFormat(annotated); com.fasterxml.jackson.annotation.JsonFormat.Value value = value1; if (value1 == null) { value = _secondary.findFormat(annotated); } return value; } public Boolean findIgnoreUnknownProperties(AnnotatedClass annotatedclass) { Boolean boolean2 = _primary.findIgnoreUnknownProperties(annotatedclass); Boolean boolean1 = boolean2; if (boolean2 == null) { boolean1 = _secondary.findIgnoreUnknownProperties(annotatedclass); } return boolean1; } public String findImplicitPropertyName(AnnotatedMember annotatedmember) { String s1 = _primary.findImplicitPropertyName(annotatedmember); String s = s1; if (s1 == null) { s = _secondary.findImplicitPropertyName(annotatedmember); } return s; } public Object findInjectableValueId(AnnotatedMember annotatedmember) { Object obj1 = _primary.findInjectableValueId(annotatedmember); Object obj = obj1; if (obj1 == null) { obj = _secondary.findInjectableValueId(annotatedmember); } return obj; } public Object findKeyDeserializer(Annotated annotated) { Object obj = _primary.findKeyDeserializer(annotated); if (_isExplicitClassOrOb(obj, com/fasterxml/jackson/databind/KeyDeserializer$None)) { return obj; } else { return _secondary.findKeyDeserializer(annotated); } } public Object findKeySerializer(Annotated annotated) { Object obj = _primary.findKeySerializer(annotated); if (_isExplicitClassOrOb(obj, com/fasterxml/jackson/databind/JsonSerializer$None)) { return obj; } else { return _secondary.findKeySerializer(annotated); } } public PropertyName findNameForDeserialization(Annotated annotated) { PropertyName propertyname1 = _primary.findNameForDeserialization(annotated); PropertyName propertyname; if (propertyname1 == null) { propertyname = _secondary.findNameForDeserialization(annotated); } else { propertyname = propertyname1; if (propertyname1 == PropertyName.USE_DEFAULT) { annotated = _secondary.findNameForDeserialization(annotated); propertyname = propertyname1; if (annotated != null) { return annotated; } } } return propertyname; } public PropertyName findNameForSerialization(Annotated annotated) { PropertyName propertyname1 = _primary.findNameForSerialization(annotated); PropertyName propertyname; if (propertyname1 == null) { propertyname = _secondary.findNameForSerialization(annotated); } else { propertyname = propertyname1; if (propertyname1 == PropertyName.USE_DEFAULT) { annotated = _secondary.findNameForSerialization(annotated); propertyname = propertyname1; if (annotated != null) { return annotated; } } } return propertyname; } public Object findNamingStrategy(AnnotatedClass annotatedclass) { Object obj1 = _primary.findNamingStrategy(annotatedclass); Object obj = obj1; if (obj1 == null) { obj = _secondary.findNamingStrategy(annotatedclass); } return obj; } public Object findNullSerializer(Annotated annotated) { Object obj = _primary.findNullSerializer(annotated); if (_isExplicitClassOrOb(obj, com/fasterxml/jackson/databind/JsonSerializer$None)) { return obj; } else { return _secondary.findNullSerializer(annotated); } } public ObjectIdInfo findObjectIdInfo(Annotated annotated) { ObjectIdInfo objectidinfo1 = _primary.findObjectIdInfo(annotated); ObjectIdInfo objectidinfo = objectidinfo1; if (objectidinfo1 == null) { objectidinfo = _secondary.findObjectIdInfo(annotated); } return objectidinfo; } public ObjectIdInfo findObjectReferenceInfo(Annotated annotated, ObjectIdInfo objectidinfo) { objectidinfo = _secondary.findObjectReferenceInfo(annotated, objectidinfo); return _primary.findObjectReferenceInfo(annotated, objectidinfo); } public Class findPOJOBuilder(AnnotatedClass annotatedclass) { Class class2 = _primary.findPOJOBuilder(annotatedclass); Class class1 = class2; if (class2 == null) { class1 = _secondary.findPOJOBuilder(annotatedclass); } return class1; } public com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder.Value findPOJOBuilderConfig(AnnotatedClass annotatedclass) { com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder.Value value1 = _primary.findPOJOBuilderConfig(annotatedclass); com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder.Value value = value1; if (value1 == null) { value = _secondary.findPOJOBuilderConfig(annotatedclass); } return value; } public String[] findPropertiesToIgnore(Annotated annotated) { String as1[] = _primary.findPropertiesToIgnore(annotated); String as[] = as1; if (as1 == null) { as = _secondary.findPropertiesToIgnore(annotated); } return as; } public String[] findPropertiesToIgnore(Annotated annotated, boolean flag) { String as1[] = _primary.findPropertiesToIgnore(annotated, flag); String as[] = as1; if (as1 == null) { as = _secondary.findPropertiesToIgnore(annotated, flag); } return as; } public com.fasterxml.jackson.annotation.JsonProperty.Access findPropertyAccess(Annotated annotated) { com.fasterxml.jackson.annotation.JsonProperty.Access access = _primary.findPropertyAccess(annotated); if (access != null && access != com.fasterxml.jackson.annotation.JsonProperty.Access.AUTO) { return access; } annotated = _secondary.findPropertyAccess(annotated); if (annotated != null) { return annotated; } else { return com.fasterxml.jackson.annotation.JsonProperty.Access.AUTO; } } public TypeResolverBuilder findPropertyContentTypeResolver(MapperConfig mapperconfig, AnnotatedMember annotatedmember, JavaType javatype) { TypeResolverBuilder typeresolverbuilder1 = _primary.findPropertyContentTypeResolver(mapperconfig, annotatedmember, javatype); TypeResolverBuilder typeresolverbuilder = typeresolverbuilder1; if (typeresolverbuilder1 == null) { typeresolverbuilder = _secondary.findPropertyContentTypeResolver(mapperconfig, annotatedmember, javatype); } return typeresolverbuilder; } public String findPropertyDefaultValue(Annotated annotated) { String s; label0: { String s1 = _primary.findPropertyDefaultValue(annotated); if (s1 != null) { s = s1; if (!s1.isEmpty()) { break label0; } } s = _secondary.findPropertyDefaultValue(annotated); } return s; } public String findPropertyDescription(Annotated annotated) { String s1 = _primary.findPropertyDescription(annotated); String s = s1; if (s1 == null) { s = _secondary.findPropertyDescription(annotated); } return s; } public com.fasterxml.jackson.annotation.JsonInclude.Value findPropertyInclusion(Annotated annotated) { com.fasterxml.jackson.annotation.JsonInclude.Value value = _secondary.findPropertyInclusion(annotated); annotated = _secondary.findPropertyInclusion(annotated); if (value == null) { return annotated; } else { return value.withOverrides(annotated); } } public Integer findPropertyIndex(Annotated annotated) { Integer integer1 = _primary.findPropertyIndex(annotated); Integer integer = integer1; if (integer1 == null) { integer = _secondary.findPropertyIndex(annotated); } return integer; } public TypeResolverBuilder findPropertyTypeResolver(MapperConfig mapperconfig, AnnotatedMember annotatedmember, JavaType javatype) { TypeResolverBuilder typeresolverbuilder1 = _primary.findPropertyTypeResolver(mapperconfig, annotatedmember, javatype); TypeResolverBuilder typeresolverbuilder = typeresolverbuilder1; if (typeresolverbuilder1 == null) { typeresolverbuilder = _secondary.findPropertyTypeResolver(mapperconfig, annotatedmember, javatype); } return typeresolverbuilder; } public com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty findReferenceType(AnnotatedMember annotatedmember) { com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty referenceproperty1 = _primary.findReferenceType(annotatedmember); com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty referenceproperty = referenceproperty1; if (referenceproperty1 == null) { referenceproperty = _secondary.findReferenceType(annotatedmember); } return referenceproperty; } public PropertyName findRootName(AnnotatedClass annotatedclass) { PropertyName propertyname1 = _primary.findRootName(annotatedclass); PropertyName propertyname; if (propertyname1 == null) { propertyname = _secondary.findRootName(annotatedclass); } else { propertyname = propertyname1; if (!propertyname1.hasSimpleName()) { annotatedclass = _secondary.findRootName(annotatedclass); propertyname = propertyname1; if (annotatedclass != null) { return annotatedclass; } } } return propertyname; } public Object findSerializationContentConverter(AnnotatedMember annotatedmember) { Object obj1 = _primary.findSerializationContentConverter(annotatedmember); Object obj = obj1; if (obj1 == null) { obj = _secondary.findSerializationContentConverter(annotatedmember); } return obj; } public Class findSerializationContentType(Annotated annotated, JavaType javatype) { Class class2 = _primary.findSerializationContentType(annotated, javatype); Class class1 = class2; if (class2 == null) { class1 = _secondary.findSerializationContentType(annotated, javatype); } return class1; } public Object findSerializationConverter(Annotated annotated) { Object obj1 = _primary.findSerializationConverter(annotated); Object obj = obj1; if (obj1 == null) { obj = _secondary.findSerializationConverter(annotated); } return obj; } public com.fasterxml.jackson.annotation.JsonInclude.Include findSerializationInclusion(Annotated annotated, com.fasterxml.jackson.annotation.JsonInclude.Include include) { include = _secondary.findSerializationInclusion(annotated, include); return _primary.findSerializationInclusion(annotated, include); } public com.fasterxml.jackson.annotation.JsonInclude.Include findSerializationInclusionForContent(Annotated annotated, com.fasterxml.jackson.annotation.JsonInclude.Include include) { include = _secondary.findSerializationInclusion(annotated, include); return _primary.findSerializationInclusion(annotated, include); } public Class findSerializationKeyType(Annotated annotated, JavaType javatype) { Class class2 = _primary.findSerializationKeyType(annotated, javatype); Class class1 = class2; if (class2 == null) { class1 = _secondary.findSerializationKeyType(annotated, javatype); } return class1; } public String[] findSerializationPropertyOrder(AnnotatedClass annotatedclass) { String as1[] = _primary.findSerializationPropertyOrder(annotatedclass); String as[] = as1; if (as1 == null) { as = _secondary.findSerializationPropertyOrder(annotatedclass); } return as; } public Boolean findSerializationSortAlphabetically(Annotated annotated) { Boolean boolean2 = _primary.findSerializationSortAlphabetically(annotated); Boolean boolean1 = boolean2; if (boolean2 == null) { boolean1 = _secondary.findSerializationSortAlphabetically(annotated); } return boolean1; } public Class findSerializationType(Annotated annotated) { Class class2 = _primary.findSerializationType(annotated); Class class1 = class2; if (class2 == null) { class1 = _secondary.findSerializationType(annotated); } return class1; } public com.fasterxml.jackson.databind.annotation.JsonSerialize.Typing findSerializationTyping(Annotated annotated) { com.fasterxml.jackson.databind.annotation.JsonSerialize.Typing typing1 = _primary.findSerializationTyping(annotated); com.fasterxml.jackson.databind.annotation.JsonSerialize.Typing typing = typing1; if (typing1 == null) { typing = _secondary.findSerializationTyping(annotated); } return typing; } public Object findSerializer(Annotated annotated) { Object obj = _primary.findSerializer(annotated); if (_isExplicitClassOrOb(obj, com/fasterxml/jackson/databind/JsonSerializer$None)) { return obj; } else { return _secondary.findSerializer(annotated); } } public List findSubtypes(Annotated annotated) { List list = _primary.findSubtypes(annotated); annotated = _secondary.findSubtypes(annotated); if (list == null || list.isEmpty()) { return annotated; } if (annotated == null || annotated.isEmpty()) { return list; } else { ArrayList arraylist = new ArrayList(list.size() + annotated.size()); arraylist.addAll(list); arraylist.addAll(annotated); return arraylist; } } public String findTypeName(AnnotatedClass annotatedclass) { String s; label0: { String s1 = _primary.findTypeName(annotatedclass); if (s1 != null) { s = s1; if (s1.length() != 0) { break label0; } } s = _secondary.findTypeName(annotatedclass); } return s; } public TypeResolverBuilder findTypeResolver(MapperConfig mapperconfig, AnnotatedClass annotatedclass, JavaType javatype) { TypeResolverBuilder typeresolverbuilder1 = _primary.findTypeResolver(mapperconfig, annotatedclass, javatype); TypeResolverBuilder typeresolverbuilder = typeresolverbuilder1; if (typeresolverbuilder1 == null) { typeresolverbuilder = _secondary.findTypeResolver(mapperconfig, annotatedclass, javatype); } return typeresolverbuilder; } public NameTransformer findUnwrappingNameTransformer(AnnotatedMember annotatedmember) { NameTransformer nametransformer1 = _primary.findUnwrappingNameTransformer(annotatedmember); NameTransformer nametransformer = nametransformer1; if (nametransformer1 == null) { nametransformer = _secondary.findUnwrappingNameTransformer(annotatedmember); } return nametransformer; } public Object findValueInstantiator(AnnotatedClass annotatedclass) { Object obj1 = _primary.findValueInstantiator(annotatedclass); Object obj = obj1; if (obj1 == null) { obj = _secondary.findValueInstantiator(annotatedclass); } return obj; } public Class[] findViews(Annotated annotated) { Class aclass1[] = _primary.findViews(annotated); Class aclass[] = aclass1; if (aclass1 == null) { aclass = _secondary.findViews(annotated); } return aclass; } public PropertyName findWrapperName(Annotated annotated) { PropertyName propertyname1 = _primary.findWrapperName(annotated); PropertyName propertyname; if (propertyname1 == null) { propertyname = _secondary.findWrapperName(annotated); } else { propertyname = propertyname1; if (propertyname1 == PropertyName.USE_DEFAULT) { annotated = _secondary.findWrapperName(annotated); propertyname = propertyname1; if (annotated != null) { return annotated; } } } return propertyname; } public boolean hasAnyGetterAnnotation(AnnotatedMethod annotatedmethod) { return _primary.hasAnyGetterAnnotation(annotatedmethod) || _secondary.hasAnyGetterAnnotation(annotatedmethod); } public boolean hasAnySetterAnnotation(AnnotatedMethod annotatedmethod) { return _primary.hasAnySetterAnnotation(annotatedmethod) || _secondary.hasAnySetterAnnotation(annotatedmethod); } public boolean hasAsValueAnnotation(AnnotatedMethod annotatedmethod) { return _primary.hasAsValueAnnotation(annotatedmethod) || _secondary.hasAsValueAnnotation(annotatedmethod); } public boolean hasCreatorAnnotation(Annotated annotated) { return _primary.hasCreatorAnnotation(annotated) || _secondary.hasCreatorAnnotation(annotated); } public boolean hasIgnoreMarker(AnnotatedMember annotatedmember) { return _primary.hasIgnoreMarker(annotatedmember) || _secondary.hasIgnoreMarker(annotatedmember); } public Boolean hasRequiredMarker(AnnotatedMember annotatedmember) { Boolean boolean2 = _primary.hasRequiredMarker(annotatedmember); Boolean boolean1 = boolean2; if (boolean2 == null) { boolean1 = _secondary.hasRequiredMarker(annotatedmember); } return boolean1; } public boolean isAnnotationBundle(Annotation annotation) { return _primary.isAnnotationBundle(annotation) || _secondary.isAnnotationBundle(annotation); } public Boolean isIgnorableType(AnnotatedClass annotatedclass) { Boolean boolean2 = _primary.isIgnorableType(annotatedclass); Boolean boolean1 = boolean2; if (boolean2 == null) { boolean1 = _secondary.isIgnorableType(annotatedclass); } return boolean1; } public Boolean isTypeId(AnnotatedMember annotatedmember) { Boolean boolean2 = _primary.isTypeId(annotatedmember); Boolean boolean1 = boolean2; if (boolean2 == null) { boolean1 = _secondary.isTypeId(annotatedmember); } return boolean1; } public Version version() { return _primary.version(); } }