calabash-android 0.4.7.pre6 → 0.4.7.pre7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/calabash-android/helpers.rb +7 -15
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/version.rb +1 -1
- data/test-server/build.xml +2 -2
- data/test-server/instrumentation-backend/.classpath +0 -3
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/HttpServer.java +1 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForProgress.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/webview/QueryHelper.java +1 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/json/JSONUtils.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/ast/UIQueryUtils.java +203 -222
- data/test-server/instrumentation-backend/src/sh/calaba/org/apache/http/entity/mime/version.properties +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Base64Variant.java +413 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Base64Variants.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/FormatSchema.java +29 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonEncoding.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonFactory.java +937 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonGenerationException.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonGenerator.java +1197 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonLocation.java +141 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonNode.java +879 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonParseException.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonParser.java +1434 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonProcessingException.java +80 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonStreamContext.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonToken.java +161 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/ObjectCodec.java +157 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/PrettyPrinter.java +166 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/SerializableString.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Version.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Versioned.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JacksonAnnotation.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAnyGetter.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAnySetter.java +24 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAutoDetect.java +148 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonBackReference.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonCreator.java +19 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonGetter.java +35 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnore.java +57 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnoreProperties.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnoreType.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonManagedReference.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonMethod.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonProperty.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonPropertyOrder.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonRawValue.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonSetter.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonSubTypes.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonTypeInfo.java +236 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonTypeName.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonUnwrapped.java +76 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonValue.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonWriteNullProperties.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/package-info.java +16 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/DataFormatDetector.java +176 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/DataFormatMatcher.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/InputAccessor.java +130 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/MatchStrength.java +64 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ByteSourceBootstrapper.java +518 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/DefaultPrettyPrinter.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Indenter.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonGeneratorBase.java +570 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonNumericParserBase.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonParserBase.java +1067 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonParserMinimalBase.java +539 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonReadContext.java +188 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonWriteContext.java +178 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ReaderBasedParser.java +1815 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ReaderBasedParserBase.java +228 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/StreamBasedParserBase.java +197 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Utf8Generator.java +1757 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Utf8StreamParser.java +2966 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/WriterBasedGenerator.java +1815 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/package-info.java +6 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/BaseReader.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/CharacterEscapes.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/IOContext.java +239 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/InputDecorator.java +67 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/JsonStringEncoder.java +408 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/MergedStream.java +145 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/NumberInput.java +303 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/NumberOutput.java +398 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/OutputDecorator.java +40 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/SegmentedStringWriter.java +104 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/SerializedString.java +114 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/UTF32Reader.java +214 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/UTF8Writer.java +387 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/package.html +4 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/AbstractTypeResolver.java +63 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/AnnotationIntrospector.java +1485 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanDescription.java +171 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanProperty.java +123 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanPropertyDefinition.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ClassIntrospector.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualDeserializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualKeyDeserializer.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationConfig.java +926 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationContext.java +262 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationProblemHandler.java +56 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializerFactory.java +356 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializerProvider.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Deserializers.java +339 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/HandlerInstantiator.java +115 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/InjectableValues.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonDeserializer.java +166 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonMappingException.java +335 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializable.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializableWithType.java +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializer.java +138 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/KeyDeserializer.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/KeyDeserializers.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MapperConfig.java +1154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MappingIterator.java +190 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MappingJsonFactory.java +81 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Module.java +255 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectMapper.java +2885 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectReader.java +958 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectWriter.java +554 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/PropertyNamingStrategy.java +258 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ResolvableDeserializer.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ResolvableSerializer.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/RuntimeJsonMappingException.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializationConfig.java +1041 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializerFactory.java +198 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializerProvider.java +552 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Serializers.java +137 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/TypeDeserializer.java +118 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/TypeSerializer.java +164 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JacksonInject.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JacksonStdImpl.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonCachable.java +32 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonDeserialize.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonFilter.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonRootName.java +29 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonSerialize.java +216 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonTypeIdResolver.java +35 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonTypeResolver.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonValueInstantiator.java +26 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonView.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/NoClass.java +19 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/AbstractDeserializer.java +102 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ArrayDeserializer.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ArrayDeserializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BasicDeserializerFactory.java +894 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializer.java +1537 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerBuilder.java +277 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerFactory.java +1474 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerModifier.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/CollectionDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ContainerDeserializer.java +14 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/CustomDeserializerFactory.java +227 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/DateDeserializer.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/EnumDeserializer.java +15 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/EnumResolver.java +17 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/FromStringDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/JsonNodeDeserializer.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/MapDeserializer.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/SettableAnyProperty.java +177 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/SettableBeanProperty.java +827 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializationContext.java +326 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializer.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializerProvider.java +494 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializers.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdKeyDeserializer.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdKeyDeserializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdScalarDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ThrowableDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/UntypedObjectDeserializer.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ValueInstantiator.java +280 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ValueInstantiators.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/BeanPropertyMap.java +257 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/CreatorCollector.java +141 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/CreatorProperty.java +152 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/ExternalTypeHandler.java +173 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyBasedCreator.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyValue.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyValueBuffer.java +102 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/UnwrappedPropertyHandler.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/ValueInjector.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/package-info.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/AtomicBooleanDeserializer.java +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/AtomicReferenceDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/CalendarDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ClassDeserializer.java +49 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/CollectionDeserializer.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ContainerDeserializerBase.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/DateDeserializer.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumDeserializer.java +139 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumMapDeserializer.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumSetDeserializer.java +89 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/FromStringDeserializer.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/JavaTypeDeserializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/JsonNodeDeserializer.java +314 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/MapDeserializer.java +412 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ObjectArrayDeserializer.java +201 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/PrimitiveArrayDeserializers.java +583 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdDeserializer.java +1136 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdKeyDeserializer.java +340 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdKeyDeserializers.java +108 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdScalarDeserializer.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdValueInstantiator.java +392 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StringCollectionDeserializer.java +227 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StringDeserializer.java +55 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ThrowableDeserializer.java +164 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/TimestampDeserializer.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/TokenBufferDeserializer.java +36 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/UntypedObjectDeserializer.java +248 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/package-info.java +15 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/exc/UnrecognizedPropertyException.java +75 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/DOMDeserializer.java +65 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/OptionalHandlerFactory.java +217 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/package-info.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/Annotated.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedClass.java +980 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedConstructor.java +143 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedField.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMember.java +56 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMethod.java +188 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMethodMap.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedParameter.java +191 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedWithParams.java +195 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotationMap.java +101 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/BasicBeanDescription.java +615 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/BasicClassIntrospector.java +364 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/JacksonAnnotationIntrospector.java +813 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/MemberKey.java +83 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/MethodFilter.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/NopAnnotationIntrospector.java +209 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/POJOPropertiesCollector.java +713 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/POJOPropertyBuilder.java +648 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/VisibilityChecker.java +424 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/package-info.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/NamedType.java +53 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/SubtypeResolver.java +39 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/TypeIdResolver.java +74 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/TypeResolverBuilder.java +151 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsArrayTypeDeserializer.java +126 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsArrayTypeSerializer.java +110 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsExternalTypeDeserializer.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsExternalTypeSerializer.java +129 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsPropertyTypeDeserializer.java +191 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsPropertyTypeSerializer.java +69 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsWrapperTypeDeserializer.java +103 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsWrapperTypeSerializer.java +121 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/ClassNameIdResolver.java +138 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/MinimalClassNameIdResolver.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/StdSubtypeResolver.java +151 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/StdTypeResolverBuilder.java +202 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeDeserializerBase.java +154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeIdResolverBase.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeNameIdResolver.java +154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeSerializerBase.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/package-info.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/package-info.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleAbstractTypeResolver.java +86 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleDeserializers.java +130 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleKeyDeserializers.java +59 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleModule.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleSerializers.java +206 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleValueInstantiators.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/package-info.java +16 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/package-info.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/AnyGetterWriter.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ArraySerializers.java +7 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BasicSerializerFactory.java +806 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanPropertyFilter.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanPropertyWriter.java +512 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializer.java +126 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerBuilder.java +140 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerFactory.java +780 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerModifier.java +95 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ContainerSerializers.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/CustomSerializerFactory.java +293 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/EnumSerializer.java +17 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/FilterProvider.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/FilteredBeanPropertyWriter.java +96 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/JdkSerializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/MapSerializer.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/PropertyBuilder.java +372 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ScalarSerializerBase.java +18 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/SerializerBase.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdKeySerializer.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdSerializerProvider.java +852 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdSerializers.java +372 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ToStringSerializer.java +14 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/FailingSerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/JsonSerializerMap.java +93 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/PropertySerializerMap.java +231 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/ReadOnlyClassToSerializerMap.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SerializerCache.java +304 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SimpleBeanPropertyFilter.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SimpleFilterProvider.java +114 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnknownSerializer.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnwrappingBeanPropertyWriter.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnwrappingBeanSerializer.java +76 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/AsArraySerializerBase.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/BeanSerializerBase.java +340 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/CalendarSerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/CollectionSerializer.java +113 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ContainerSerializerBase.java +51 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/DateSerializer.java +42 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumMapSerializer.java +218 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumSerializer.java +84 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumSetSerializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/IndexedStringListSerializer.java +116 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/InetAddressSerializer.java +51 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/IterableSerializer.java +63 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/JsonValueSerializer.java +233 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/MapSerializer.java +422 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/NonTypedScalarSerializerBase.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/NullSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ObjectArraySerializer.java +281 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/RawSerializer.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ScalarSerializerBase.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializableSerializer.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializableWithTypeSerializer.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializerBase.java +184 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StaticListSerializerBase.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdArraySerializers.java +476 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdContainerSerializers.java +249 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdJdkSerializers.java +195 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdKeySerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdKeySerializers.java +95 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StringCollectionSerializer.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StringSerializer.java +36 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/TimeZoneSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ToStringSerializer.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/TokenBufferSerializer.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/ArrayType.java +260 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/ClassKey.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/CollectionLikeType.java +204 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/CollectionType.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/HierarchicType.java +88 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/MapLikeType.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/MapType.java +146 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/SimpleType.java +250 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeBase.java +148 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeBindings.java +351 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeFactory.java +1165 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeModifier.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeParser.java +134 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/package-info.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Annotations.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ArrayBuilders.java +293 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/BeanUtil.java +260 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ClassUtil.java +645 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Comparators.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/EnumResolver.java +108 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/EnumValues.java +82 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ISO8601DateFormat.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ISO8601Utils.java +230 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/JSONPObject.java +105 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/JSONWrappedObject.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/LRUMap.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/LinkedNode.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Named.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ObjectBuffer.java +257 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/PrimitiveArrayBuilder.java +180 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Provider.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/RootNameLookup.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/StdDateFormat.java +348 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/package-info.java +4 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ArrayNode.java +758 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BaseJsonNode.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BigIntegerNode.java +104 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BinaryNode.java +136 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BooleanNode.java +84 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ContainerNode.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/DecimalNode.java +96 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/DoubleNode.java +106 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/IntNode.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/JsonNodeFactory.java +222 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/LongNode.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/MissingNode.java +97 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NodeCursor.java +222 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NullNode.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NumericNode.java +72 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ObjectNode.java +696 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/POJONode.java +145 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/TextNode.java +299 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/TreeTraversingParser.java +383 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/package-info.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/JsonSchema.java +82 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/JsonSerializableSchema.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/SchemaAware.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/BytesToNameCanonicalizer.java +969 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/CharsToNameCanonicalizer.java +578 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name.java +50 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name1.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java +40 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name3.java +39 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/NameN.java +68 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/JavaType.java +503 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/TypeReference.java +60 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/BufferRecycler.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/ByteArrayBuilder.java +294 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/CharTypes.java +237 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/DefaultPrettyPrinter.java +282 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/InternCache.java +49 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonGeneratorDelegate.java +273 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonParserDelegate.java +251 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonParserSequence.java +150 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/MinimalPrettyPrinter.java +152 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/TextBuffer.java +707 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/TokenBuffer.java +1233 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/VersionUtil.java +79 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/package-info.java +4 -0
- metadata +409 -5
- data/test-server/instrumentation-backend/libs/jackson-annotations-2.2.0-rc2-20130418.042013-1.jar +0 -0
- data/test-server/instrumentation-backend/libs/jackson-core-2.2.0-rc2-20130420.041001-2.jar +0 -0
- data/test-server/instrumentation-backend/libs/jackson-databind-2.2.0-rc2-20130422.041053-3.jar +0 -0
@@ -0,0 +1,101 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.introspect;
|
2
|
+
|
3
|
+
import java.lang.annotation.Annotation;
|
4
|
+
import java.util.*;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.map.util.Annotations;
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Simple helper class used to keep track of collection of
|
10
|
+
* Jackson Annotations associated with annotatable things
|
11
|
+
* (methods, constructors, classes).
|
12
|
+
* Note that only Jackson-owned annotations are tracked (for now?).
|
13
|
+
*/
|
14
|
+
public final class AnnotationMap implements Annotations
|
15
|
+
{
|
16
|
+
protected HashMap<Class<? extends Annotation>,Annotation> _annotations;
|
17
|
+
|
18
|
+
public AnnotationMap() { }
|
19
|
+
private AnnotationMap(HashMap<Class<? extends Annotation>,Annotation> a) {
|
20
|
+
_annotations = a;
|
21
|
+
}
|
22
|
+
|
23
|
+
@SuppressWarnings("unchecked")
|
24
|
+
@Override
|
25
|
+
public <A extends Annotation> A get(Class<A> cls)
|
26
|
+
{
|
27
|
+
if (_annotations == null) {
|
28
|
+
return null;
|
29
|
+
}
|
30
|
+
return (A) _annotations.get(cls);
|
31
|
+
}
|
32
|
+
|
33
|
+
public static AnnotationMap merge(AnnotationMap primary, AnnotationMap secondary)
|
34
|
+
{
|
35
|
+
if (primary == null || primary._annotations == null || primary._annotations.isEmpty()) {
|
36
|
+
return secondary;
|
37
|
+
}
|
38
|
+
if (secondary == null || secondary._annotations == null || secondary._annotations.isEmpty()) {
|
39
|
+
return primary;
|
40
|
+
}
|
41
|
+
HashMap<Class<? extends Annotation>,Annotation> annotations
|
42
|
+
= new HashMap<Class<? extends Annotation>,Annotation>();
|
43
|
+
// add secondary ones first
|
44
|
+
for (Annotation ann : secondary._annotations.values()) {
|
45
|
+
annotations.put(ann.annotationType(), ann);
|
46
|
+
}
|
47
|
+
// to be overridden by primary ones
|
48
|
+
for (Annotation ann : primary._annotations.values()) {
|
49
|
+
annotations.put(ann.annotationType(), ann);
|
50
|
+
}
|
51
|
+
return new AnnotationMap(annotations);
|
52
|
+
}
|
53
|
+
|
54
|
+
@Override
|
55
|
+
public int size() {
|
56
|
+
return (_annotations == null) ? 0 : _annotations.size();
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Method called to add specified annotation in the Map, but
|
61
|
+
* only if it didn't yet exist.
|
62
|
+
*/
|
63
|
+
public void addIfNotPresent(Annotation ann)
|
64
|
+
{
|
65
|
+
if (_annotations == null || !_annotations.containsKey(ann.annotationType())) {
|
66
|
+
_add(ann);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Method called to add specified annotation in the Map.
|
72
|
+
*/
|
73
|
+
public void add(Annotation ann) {
|
74
|
+
_add(ann);
|
75
|
+
}
|
76
|
+
|
77
|
+
@Override
|
78
|
+
public String toString()
|
79
|
+
{
|
80
|
+
if (_annotations == null) {
|
81
|
+
return "[null]";
|
82
|
+
}
|
83
|
+
return _annotations.toString();
|
84
|
+
}
|
85
|
+
|
86
|
+
/*
|
87
|
+
/**********************************************************
|
88
|
+
/* Helper methods
|
89
|
+
/**********************************************************
|
90
|
+
*/
|
91
|
+
|
92
|
+
protected final void _add(Annotation ann)
|
93
|
+
{
|
94
|
+
if (_annotations == null) {
|
95
|
+
_annotations = new HashMap<Class<? extends Annotation>,Annotation>();
|
96
|
+
}
|
97
|
+
_annotations.put(ann.annotationType(), ann);
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
|
@@ -0,0 +1,615 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.introspect;
|
2
|
+
|
3
|
+
import java.lang.reflect.Constructor;
|
4
|
+
import java.lang.reflect.Method;
|
5
|
+
import java.util.*;
|
6
|
+
|
7
|
+
import sh.calaba.org.codehaus.jackson.map.*;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.annotate.JsonSerialize;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.type.TypeBindings;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.util.Annotations;
|
11
|
+
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Default {@link BeanDescription} implementation.
|
15
|
+
* Can theoretically be subclassed to customize
|
16
|
+
* some aspects of property introspection.
|
17
|
+
*/
|
18
|
+
public class BasicBeanDescription extends BeanDescription
|
19
|
+
{
|
20
|
+
/*
|
21
|
+
/**********************************************************
|
22
|
+
/* General configuration
|
23
|
+
/**********************************************************
|
24
|
+
*/
|
25
|
+
|
26
|
+
final protected MapperConfig<?> _config;
|
27
|
+
|
28
|
+
final protected AnnotationIntrospector _annotationIntrospector;
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Information collected about the class introspected.
|
32
|
+
*/
|
33
|
+
final protected AnnotatedClass _classInfo;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* We may need type bindings for the bean type. If so, we'll
|
37
|
+
* construct it lazily
|
38
|
+
*/
|
39
|
+
protected TypeBindings _bindings;
|
40
|
+
|
41
|
+
/*
|
42
|
+
/**********************************************************
|
43
|
+
/* Member information
|
44
|
+
/**********************************************************
|
45
|
+
*/
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Properties collected for the POJO.
|
49
|
+
*/
|
50
|
+
protected final List<BeanPropertyDefinition> _properties;
|
51
|
+
|
52
|
+
// // for deserialization
|
53
|
+
|
54
|
+
protected AnnotatedMethod _anySetterMethod;
|
55
|
+
|
56
|
+
protected Map<Object, AnnotatedMember> _injectables;
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Set of properties that can be ignored during deserialization, due
|
60
|
+
* to being marked as ignored.
|
61
|
+
*/
|
62
|
+
protected Set<String> _ignoredPropertyNames;
|
63
|
+
|
64
|
+
/**
|
65
|
+
* @since 1.9.4
|
66
|
+
*/
|
67
|
+
protected Set<String> _ignoredPropertyNamesForDeser;
|
68
|
+
|
69
|
+
// // for serialization
|
70
|
+
|
71
|
+
protected AnnotatedMethod _jsonValueMethod;
|
72
|
+
|
73
|
+
protected AnnotatedMethod _anyGetterMethod;
|
74
|
+
|
75
|
+
/*
|
76
|
+
/**********************************************************
|
77
|
+
/* Life-cycle
|
78
|
+
/**********************************************************
|
79
|
+
*/
|
80
|
+
|
81
|
+
/**
|
82
|
+
* @deprecated Since 1.9, should use factory methods instead
|
83
|
+
*/
|
84
|
+
@Deprecated
|
85
|
+
public BasicBeanDescription(MapperConfig<?> config, JavaType type,
|
86
|
+
AnnotatedClass ac)
|
87
|
+
{
|
88
|
+
this(config, type, ac, Collections.<BeanPropertyDefinition>emptyList());
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* @since 1.9
|
93
|
+
*/
|
94
|
+
protected BasicBeanDescription(MapperConfig<?> config, JavaType type,
|
95
|
+
AnnotatedClass ac, List<BeanPropertyDefinition> properties)
|
96
|
+
{
|
97
|
+
super(type);
|
98
|
+
_config = config;
|
99
|
+
_annotationIntrospector = (config == null) ? null : config.getAnnotationIntrospector();
|
100
|
+
_classInfo = ac;
|
101
|
+
_properties = properties;
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Factory method to use for constructing an instance to use for building
|
106
|
+
* deserializers.
|
107
|
+
*
|
108
|
+
* @since 1.9
|
109
|
+
*/
|
110
|
+
public static BasicBeanDescription forDeserialization(POJOPropertiesCollector coll)
|
111
|
+
{
|
112
|
+
BasicBeanDescription desc = new BasicBeanDescription(coll.getConfig(),
|
113
|
+
coll.getType(), coll.getClassDef(), coll.getProperties());
|
114
|
+
desc._anySetterMethod = coll.getAnySetterMethod();
|
115
|
+
desc._ignoredPropertyNames = coll.getIgnoredPropertyNames();
|
116
|
+
desc._ignoredPropertyNamesForDeser = coll.getIgnoredPropertyNamesForDeser();
|
117
|
+
desc._injectables = coll.getInjectables();
|
118
|
+
return desc;
|
119
|
+
}
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Factory method to use for constructing an instance to use for building
|
123
|
+
* serializers.
|
124
|
+
*
|
125
|
+
* @since 1.9
|
126
|
+
*/
|
127
|
+
public static BasicBeanDescription forSerialization(POJOPropertiesCollector coll)
|
128
|
+
{
|
129
|
+
BasicBeanDescription desc = new BasicBeanDescription(coll.getConfig(),
|
130
|
+
coll.getType(), coll.getClassDef(), coll.getProperties());
|
131
|
+
desc._jsonValueMethod = coll.getJsonValueMethod();
|
132
|
+
desc._anyGetterMethod = coll.getAnyGetterMethod();
|
133
|
+
return desc;
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Factory method to use for constructing an instance to use for purposes
|
138
|
+
* other than building serializers or deserializers; will only have information
|
139
|
+
* on class, not on properties.
|
140
|
+
*
|
141
|
+
* @since 1.9
|
142
|
+
*/
|
143
|
+
public static BasicBeanDescription forOtherUse(MapperConfig<?> config,
|
144
|
+
JavaType type, AnnotatedClass ac)
|
145
|
+
{
|
146
|
+
return new BasicBeanDescription(config, type,
|
147
|
+
ac, Collections.<BeanPropertyDefinition>emptyList());
|
148
|
+
}
|
149
|
+
|
150
|
+
/*
|
151
|
+
/**********************************************************
|
152
|
+
/* Simple accessors from BeanDescription
|
153
|
+
/**********************************************************
|
154
|
+
*/
|
155
|
+
|
156
|
+
/**
|
157
|
+
* @since 1.9
|
158
|
+
*/
|
159
|
+
@Override
|
160
|
+
public AnnotatedClass getClassInfo() { return _classInfo; }
|
161
|
+
|
162
|
+
@Override
|
163
|
+
public List<BeanPropertyDefinition> findProperties() {
|
164
|
+
return _properties;
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Method for locating the getter method that is annotated with
|
169
|
+
* {@link sh.calaba.org.codehaus.jackson.annotate.JsonValue} annotation,
|
170
|
+
* if any. If multiple ones are found,
|
171
|
+
* an error is reported by throwing {@link IllegalArgumentException}
|
172
|
+
*/
|
173
|
+
@Override
|
174
|
+
public AnnotatedMethod findJsonValueMethod()
|
175
|
+
{
|
176
|
+
return _jsonValueMethod;
|
177
|
+
}
|
178
|
+
|
179
|
+
@Override
|
180
|
+
public Set<String> getIgnoredPropertyNames() {
|
181
|
+
if (_ignoredPropertyNames == null) {
|
182
|
+
return Collections.emptySet();
|
183
|
+
}
|
184
|
+
return _ignoredPropertyNames;
|
185
|
+
}
|
186
|
+
|
187
|
+
public Set<String> getIgnoredPropertyNamesForDeser() {
|
188
|
+
return _ignoredPropertyNamesForDeser;
|
189
|
+
}
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Method for checking whether class being described has any
|
193
|
+
* annotations recognized by registered annotation introspector.
|
194
|
+
*/
|
195
|
+
@Override
|
196
|
+
public boolean hasKnownClassAnnotations() {
|
197
|
+
return _classInfo.hasAnnotations();
|
198
|
+
}
|
199
|
+
|
200
|
+
@Override
|
201
|
+
public Annotations getClassAnnotations() {
|
202
|
+
return _classInfo.getAnnotations();
|
203
|
+
}
|
204
|
+
|
205
|
+
@Override
|
206
|
+
public TypeBindings bindingsForBeanType()
|
207
|
+
{
|
208
|
+
if (_bindings == null) {
|
209
|
+
_bindings = new TypeBindings(_config.getTypeFactory(), _type);
|
210
|
+
}
|
211
|
+
return _bindings;
|
212
|
+
}
|
213
|
+
|
214
|
+
@Override
|
215
|
+
public JavaType resolveType(java.lang.reflect.Type jdkType) {
|
216
|
+
if (jdkType == null) {
|
217
|
+
return null;
|
218
|
+
}
|
219
|
+
return bindingsForBeanType().resolveType(jdkType);
|
220
|
+
}
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Method that will locate the no-arg constructor for this class,
|
224
|
+
* if it has one, and that constructor has not been marked as
|
225
|
+
* ignorable.
|
226
|
+
*
|
227
|
+
* @since 1.9
|
228
|
+
*/
|
229
|
+
@Override
|
230
|
+
public AnnotatedConstructor findDefaultConstructor()
|
231
|
+
{
|
232
|
+
return _classInfo.getDefaultConstructor();
|
233
|
+
}
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Method used to locate the method of introspected class that
|
237
|
+
* implements {@link sh.calaba.org.codehaus.jackson.annotate.JsonAnySetter}. If no such method exists
|
238
|
+
* null is returned. If more than one are found, an exception
|
239
|
+
* is thrown.
|
240
|
+
* Additional checks are also made to see that method signature
|
241
|
+
* is acceptable: needs to take 2 arguments, first one String or
|
242
|
+
* Object; second any can be any type.
|
243
|
+
*/
|
244
|
+
@Override
|
245
|
+
public AnnotatedMethod findAnySetter() throws IllegalArgumentException
|
246
|
+
{
|
247
|
+
if (_anySetterMethod != null) {
|
248
|
+
/* Also, let's be somewhat strict on how field name is to be
|
249
|
+
* passed; String, Object make sense, others not
|
250
|
+
* so much.
|
251
|
+
*/
|
252
|
+
/* !!! 18-May-2009, tatu: how about enums? Can add support if
|
253
|
+
* requested; easy enough for devs to add support within
|
254
|
+
* method.
|
255
|
+
*/
|
256
|
+
Class<?> type = _anySetterMethod.getParameterClass(0);
|
257
|
+
if (type != String.class && type != Object.class) {
|
258
|
+
throw new IllegalArgumentException("Invalid 'any-setter' annotation on method "+_anySetterMethod.getName()+"(): first argument not of type String or Object, but "+type.getName());
|
259
|
+
}
|
260
|
+
}
|
261
|
+
return _anySetterMethod;
|
262
|
+
}
|
263
|
+
|
264
|
+
@Override
|
265
|
+
public Map<Object, AnnotatedMember> findInjectables()
|
266
|
+
{
|
267
|
+
return _injectables;
|
268
|
+
}
|
269
|
+
|
270
|
+
public List<AnnotatedConstructor> getConstructors()
|
271
|
+
{
|
272
|
+
return _classInfo.getConstructors();
|
273
|
+
}
|
274
|
+
|
275
|
+
/*
|
276
|
+
/**********************************************************
|
277
|
+
/* Simple accessors, extended
|
278
|
+
/**********************************************************
|
279
|
+
*/
|
280
|
+
|
281
|
+
public AnnotatedMethod findMethod(String name, Class<?>[] paramTypes)
|
282
|
+
{
|
283
|
+
return _classInfo.findMethod(name, paramTypes);
|
284
|
+
}
|
285
|
+
|
286
|
+
/**
|
287
|
+
* Method called to create a "default instance" of the bean, currently
|
288
|
+
* only needed for obtaining default field values which may be used for
|
289
|
+
* suppressing serialization of fields that have "not changed".
|
290
|
+
*
|
291
|
+
* @param fixAccess If true, method is allowed to fix access to the
|
292
|
+
* default constructor (to be able to call non-public constructor);
|
293
|
+
* if false, has to use constructor as is.
|
294
|
+
*
|
295
|
+
* @return Instance of class represented by this descriptor, if
|
296
|
+
* suitable default constructor was found; null otherwise.
|
297
|
+
*/
|
298
|
+
public Object instantiateBean(boolean fixAccess)
|
299
|
+
{
|
300
|
+
AnnotatedConstructor ac = _classInfo.getDefaultConstructor();
|
301
|
+
if (ac == null) {
|
302
|
+
return null;
|
303
|
+
}
|
304
|
+
if (fixAccess) {
|
305
|
+
ac.fixAccess();
|
306
|
+
}
|
307
|
+
try {
|
308
|
+
return ac.getAnnotated().newInstance();
|
309
|
+
} catch (Exception e) {
|
310
|
+
Throwable t = e;
|
311
|
+
while (t.getCause() != null) {
|
312
|
+
t = t.getCause();
|
313
|
+
}
|
314
|
+
if (t instanceof Error) throw (Error) t;
|
315
|
+
if (t instanceof RuntimeException) throw (RuntimeException) t;
|
316
|
+
throw new IllegalArgumentException("Failed to instantiate bean of type "+_classInfo.getAnnotated().getName()+": ("+t.getClass().getName()+") "+t.getMessage(), t);
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
/*
|
321
|
+
/**********************************************************
|
322
|
+
/* Introspection for serialization, factories
|
323
|
+
/**********************************************************
|
324
|
+
*/
|
325
|
+
|
326
|
+
public List<AnnotatedMethod> getFactoryMethods()
|
327
|
+
{
|
328
|
+
// must filter out anything that clearly is not a factory method
|
329
|
+
List<AnnotatedMethod> candidates = _classInfo.getStaticMethods();
|
330
|
+
if (candidates.isEmpty()) {
|
331
|
+
return candidates;
|
332
|
+
}
|
333
|
+
ArrayList<AnnotatedMethod> result = new ArrayList<AnnotatedMethod>();
|
334
|
+
for (AnnotatedMethod am : candidates) {
|
335
|
+
if (isFactoryMethod(am)) {
|
336
|
+
result.add(am);
|
337
|
+
}
|
338
|
+
}
|
339
|
+
return result;
|
340
|
+
}
|
341
|
+
|
342
|
+
/**
|
343
|
+
* Method that can be called to locate a single-arg constructor that
|
344
|
+
* takes specified exact type (will not accept supertype constructors)
|
345
|
+
*
|
346
|
+
* @param argTypes Type(s) of the argument that we are looking for
|
347
|
+
*/
|
348
|
+
public Constructor<?> findSingleArgConstructor(Class<?>... argTypes)
|
349
|
+
{
|
350
|
+
for (AnnotatedConstructor ac : _classInfo.getConstructors()) {
|
351
|
+
// This list is already filtered to only include accessible
|
352
|
+
/* (note: for now this is a redundant check; but in future
|
353
|
+
* that may change; thus leaving here for now)
|
354
|
+
*/
|
355
|
+
if (ac.getParameterCount() == 1) {
|
356
|
+
Class<?> actArg = ac.getParameterClass(0);
|
357
|
+
for (Class<?> expArg : argTypes) {
|
358
|
+
if (expArg == actArg) {
|
359
|
+
return ac.getAnnotated();
|
360
|
+
}
|
361
|
+
}
|
362
|
+
}
|
363
|
+
}
|
364
|
+
return null;
|
365
|
+
}
|
366
|
+
|
367
|
+
/**
|
368
|
+
* Method that can be called to find if introspected class declares
|
369
|
+
* a static "valueOf" factory method that returns an instance of
|
370
|
+
* introspected type, given one of acceptable types.
|
371
|
+
*
|
372
|
+
* @param expArgTypes Types that the matching single argument factory
|
373
|
+
* method can take: will also accept super types of these types
|
374
|
+
* (ie. arg just has to be assignable from expArgType)
|
375
|
+
*/
|
376
|
+
public Method findFactoryMethod(Class<?>... expArgTypes)
|
377
|
+
{
|
378
|
+
// So, of all single-arg static methods:
|
379
|
+
for (AnnotatedMethod am : _classInfo.getStaticMethods()) {
|
380
|
+
if (isFactoryMethod(am)) {
|
381
|
+
// And must take one of expected arg types (or supertype)
|
382
|
+
Class<?> actualArgType = am.getParameterClass(0);
|
383
|
+
for (Class<?> expArgType : expArgTypes) {
|
384
|
+
// And one that matches what we would pass in
|
385
|
+
if (actualArgType.isAssignableFrom(expArgType)) {
|
386
|
+
return am.getAnnotated();
|
387
|
+
}
|
388
|
+
}
|
389
|
+
}
|
390
|
+
}
|
391
|
+
return null;
|
392
|
+
}
|
393
|
+
|
394
|
+
protected boolean isFactoryMethod(AnnotatedMethod am)
|
395
|
+
{
|
396
|
+
/* First: return type must be compatible with the introspected class
|
397
|
+
* (i.e. allowed to be sub-class, although usually is the same
|
398
|
+
* class)
|
399
|
+
*/
|
400
|
+
Class<?> rt = am.getRawType();
|
401
|
+
if (!getBeanClass().isAssignableFrom(rt)) {
|
402
|
+
return false;
|
403
|
+
}
|
404
|
+
|
405
|
+
/* Also: must be a recognized factory method, meaning:
|
406
|
+
* (a) marked with @JsonCreator annotation, or
|
407
|
+
* (a) "valueOf" (at this point, need not be public)
|
408
|
+
*/
|
409
|
+
if (_annotationIntrospector.hasCreatorAnnotation(am)) {
|
410
|
+
return true;
|
411
|
+
}
|
412
|
+
if ("valueOf".equals(am.getName())) {
|
413
|
+
return true;
|
414
|
+
}
|
415
|
+
return false;
|
416
|
+
}
|
417
|
+
|
418
|
+
/**
|
419
|
+
* Method for getting ordered list of named Creator properties.
|
420
|
+
* Returns an empty list is none found. If multiple Creator
|
421
|
+
* methods are defined, order between properties from different
|
422
|
+
* methods is undefined; however, properties for each such
|
423
|
+
* Creator are ordered properly relative to each other. For the
|
424
|
+
* usual case of just a single Creator, named properties are
|
425
|
+
* thus properly ordered.
|
426
|
+
*/
|
427
|
+
public List<String> findCreatorPropertyNames()
|
428
|
+
{
|
429
|
+
List<String> names = null;
|
430
|
+
|
431
|
+
for (int i = 0; i < 2; ++i) {
|
432
|
+
List<? extends AnnotatedWithParams> l = (i == 0)
|
433
|
+
? getConstructors() : getFactoryMethods();
|
434
|
+
for (AnnotatedWithParams creator : l) {
|
435
|
+
int argCount = creator.getParameterCount();
|
436
|
+
if (argCount < 1) continue;
|
437
|
+
String name = _annotationIntrospector.findPropertyNameForParam(creator.getParameter(0));
|
438
|
+
if (name == null) continue;
|
439
|
+
if (names == null) {
|
440
|
+
names = new ArrayList<String>();
|
441
|
+
}
|
442
|
+
names.add(name);
|
443
|
+
for (int p = 1; p < argCount; ++p) {
|
444
|
+
names.add(_annotationIntrospector.findPropertyNameForParam(creator.getParameter(p)));
|
445
|
+
}
|
446
|
+
}
|
447
|
+
}
|
448
|
+
if (names == null) {
|
449
|
+
return Collections.emptyList();
|
450
|
+
}
|
451
|
+
return names;
|
452
|
+
}
|
453
|
+
|
454
|
+
/*
|
455
|
+
/**********************************************************
|
456
|
+
/* Introspection for serialization, other
|
457
|
+
/**********************************************************
|
458
|
+
*/
|
459
|
+
|
460
|
+
/**
|
461
|
+
* Method for determining whether null properties should be written
|
462
|
+
* out for a Bean of introspected type. This is based on global
|
463
|
+
* feature (lowest priority, passed as argument)
|
464
|
+
* and per-class annotation (highest priority).
|
465
|
+
*/
|
466
|
+
public JsonSerialize.Inclusion findSerializationInclusion(JsonSerialize.Inclusion defValue)
|
467
|
+
{
|
468
|
+
if (_annotationIntrospector == null) {
|
469
|
+
return defValue;
|
470
|
+
}
|
471
|
+
return _annotationIntrospector.findSerializationInclusion(_classInfo, defValue);
|
472
|
+
}
|
473
|
+
|
474
|
+
/**
|
475
|
+
* Method used to locate the method of introspected class that
|
476
|
+
* implements {@link sh.calaba.org.codehaus.jackson.annotate.JsonAnyGetter}.
|
477
|
+
* If no such method exists null is returned.
|
478
|
+
* If more than one are found, an exception is thrown.
|
479
|
+
*
|
480
|
+
* @since 1.6
|
481
|
+
*/
|
482
|
+
@Override
|
483
|
+
public AnnotatedMethod findAnyGetter() throws IllegalArgumentException
|
484
|
+
{
|
485
|
+
if (_anyGetterMethod != null) {
|
486
|
+
/* For now let's require a Map; in future can add support for other
|
487
|
+
* types like perhaps Iterable<Map.Entry>?
|
488
|
+
*/
|
489
|
+
Class<?> type = _anyGetterMethod.getRawType();
|
490
|
+
if (!Map.class.isAssignableFrom(type)) {
|
491
|
+
throw new IllegalArgumentException("Invalid 'any-getter' annotation on method "+_anyGetterMethod.getName()+"(): return type is not instance of java.util.Map");
|
492
|
+
}
|
493
|
+
}
|
494
|
+
return _anyGetterMethod;
|
495
|
+
}
|
496
|
+
|
497
|
+
/**
|
498
|
+
* Method for locating all back-reference properties (setters, fields) bean has
|
499
|
+
*
|
500
|
+
* @since 1.6
|
501
|
+
*/
|
502
|
+
public Map<String,AnnotatedMember> findBackReferenceProperties()
|
503
|
+
{
|
504
|
+
HashMap<String,AnnotatedMember> result = null;
|
505
|
+
for (BeanPropertyDefinition property : _properties) {
|
506
|
+
AnnotatedMember am = property.getMutator();
|
507
|
+
if (am == null) {
|
508
|
+
continue;
|
509
|
+
}
|
510
|
+
AnnotationIntrospector.ReferenceProperty refDef = _annotationIntrospector.findReferenceType(am);
|
511
|
+
if (refDef != null && refDef.isBackReference()) {
|
512
|
+
if (result == null) {
|
513
|
+
result = new HashMap<String,AnnotatedMember>();
|
514
|
+
}
|
515
|
+
String refName = refDef.getName();
|
516
|
+
if (result.put(refName, am) != null) {
|
517
|
+
throw new IllegalArgumentException("Multiple back-reference properties with name '"+refName+"'");
|
518
|
+
}
|
519
|
+
}
|
520
|
+
}
|
521
|
+
return result;
|
522
|
+
}
|
523
|
+
|
524
|
+
/*
|
525
|
+
/**********************************************************
|
526
|
+
/* Helper methods for field introspection
|
527
|
+
/**********************************************************
|
528
|
+
*/
|
529
|
+
|
530
|
+
/**
|
531
|
+
* @param ignoredProperties (optional) names of properties to ignore;
|
532
|
+
* any fields that would be recognized as one of these properties
|
533
|
+
* is ignored.
|
534
|
+
* @param forSerialization If true, will collect serializable property
|
535
|
+
* fields; if false, deserializable
|
536
|
+
*
|
537
|
+
* @return Ordered Map with logical property name as key, and
|
538
|
+
* matching field as value.
|
539
|
+
*/
|
540
|
+
public LinkedHashMap<String,AnnotatedField> _findPropertyFields(
|
541
|
+
Collection<String> ignoredProperties, boolean forSerialization)
|
542
|
+
{
|
543
|
+
LinkedHashMap<String,AnnotatedField> results = new LinkedHashMap<String,AnnotatedField>();
|
544
|
+
for (BeanPropertyDefinition property : _properties) {
|
545
|
+
AnnotatedField f = property.getField();
|
546
|
+
if (f != null) {
|
547
|
+
String name = property.getName();
|
548
|
+
if (ignoredProperties != null) {
|
549
|
+
if (ignoredProperties.contains(name)) {
|
550
|
+
continue;
|
551
|
+
}
|
552
|
+
}
|
553
|
+
results.put(name, f);
|
554
|
+
}
|
555
|
+
}
|
556
|
+
return results;
|
557
|
+
}
|
558
|
+
|
559
|
+
/*
|
560
|
+
/**********************************************************
|
561
|
+
/* Deprecated methods from BeanDescription
|
562
|
+
/**********************************************************
|
563
|
+
*/
|
564
|
+
|
565
|
+
@SuppressWarnings("deprecation")
|
566
|
+
@Override
|
567
|
+
public LinkedHashMap<String,AnnotatedMethod> findGetters(VisibilityChecker<?> visibilityChecker,
|
568
|
+
Collection<String> ignoredProperties)
|
569
|
+
{
|
570
|
+
LinkedHashMap<String,AnnotatedMethod> results = new LinkedHashMap<String,AnnotatedMethod>();
|
571
|
+
for (BeanPropertyDefinition property : _properties) {
|
572
|
+
AnnotatedMethod m = property.getGetter();
|
573
|
+
if (m != null) {
|
574
|
+
String name = property.getName();
|
575
|
+
if (ignoredProperties != null) {
|
576
|
+
if (ignoredProperties.contains(name)) {
|
577
|
+
continue;
|
578
|
+
}
|
579
|
+
}
|
580
|
+
results.put(name, m);
|
581
|
+
}
|
582
|
+
}
|
583
|
+
return results;
|
584
|
+
}
|
585
|
+
|
586
|
+
@SuppressWarnings("deprecation")
|
587
|
+
@Override
|
588
|
+
public LinkedHashMap<String,AnnotatedMethod> findSetters(VisibilityChecker<?> visibilityChecker)
|
589
|
+
{
|
590
|
+
LinkedHashMap<String,AnnotatedMethod> results = new LinkedHashMap<String,AnnotatedMethod>();
|
591
|
+
for (BeanPropertyDefinition property : _properties) {
|
592
|
+
AnnotatedMethod m = property.getSetter();
|
593
|
+
if (m != null) {
|
594
|
+
results.put(property.getName(), m);
|
595
|
+
}
|
596
|
+
}
|
597
|
+
return results;
|
598
|
+
}
|
599
|
+
|
600
|
+
@SuppressWarnings("deprecation")
|
601
|
+
@Override
|
602
|
+
public LinkedHashMap<String,AnnotatedField> findSerializableFields(VisibilityChecker<?> visibilityChecker,
|
603
|
+
Collection<String> ignoredProperties)
|
604
|
+
{
|
605
|
+
return _findPropertyFields(ignoredProperties, true);
|
606
|
+
}
|
607
|
+
|
608
|
+
@SuppressWarnings("deprecation")
|
609
|
+
@Override
|
610
|
+
public LinkedHashMap<String,AnnotatedField> findDeserializableFields(VisibilityChecker<?> visibilityChecker,
|
611
|
+
Collection<String> ignoredProperties)
|
612
|
+
{
|
613
|
+
return _findPropertyFields(ignoredProperties, false);
|
614
|
+
}
|
615
|
+
}
|