/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | ObjectReaderValueOfWithValueTypeTest.java | 44 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfStringWithValueType() 51 verify(objectReader).forType(POJO.class); in testValueOfStringWithValueType() 58 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfByteArrayWithValueType() 66 verify(objectReader).forType(POJO.class); in testValueOfByteArrayWithValueType() 72 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfDataInputWithValueType() 80 verify(objectReader).forType(POJO.class); in testValueOfDataInputWithValueType() 86 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfFileWithValueType() 94 verify(objectReader).forType(POJO.class); in testValueOfFileWithValueType() 100 when(objectReader.forType((Class<?>) any())).thenReturn(objectReader); in testValueOfInputStreamWithValueType() 108 verify(objectReader).forType(POJO.class); in testValueOfInputStreamWithValueType() [all …]
|
D | ObjectReaderTest.java | 244 ObjectReader newR = r.forType(MAPPER.constructType(String.class)); in testMiscSettings() 246 assertSame(newR, newR.forType(String.class)); in testMiscSettings() 262 ObjectReader newR = r.forType(MAPPER.constructType(String.class)); in testDeprecatedSettings() 275 Number n = r.forType(Integer.class).readValue("123 "); in testNoPrefetch() 285 r = r.forType(String.class); in testGetValueType()
|
/external/grpc-grpc/src/csharp/Grpc.Core/Logging/ |
D | TextWriterLogger.cs | 34 readonly Type forType; field in Grpc.Core.Logging.TextWriterLogger 55 protected TextWriterLogger(Func<TextWriter> textWriterProvider, Type forType) in TextWriterLogger() argument 58 this.forType = forType; in TextWriterLogger() 59 if (forType != null) in TextWriterLogger() 61 var namespaceStr = forType.Namespace ?? ""; in TextWriterLogger() 66 this.forTypeString = namespaceStr + forType.Name + " "; in TextWriterLogger() 79 if (typeof(T) == forType) in ForType() 149 get { return forType; }
|
D | ConsoleLogger.cs | 34 private ConsoleLogger(Type forType) : base(() => Console.Error, forType) in ConsoleLogger() argument
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/ |
D | AnnotatedClassResolver.java | 83 public static AnnotatedClass resolve(MapperConfig<?> config, JavaType forType, in resolve() argument 86 if (forType.isArrayType() && skippableArray(config, forType.getRawClass())) { in resolve() 87 return createArrayType(config, forType.getRawClass()); in resolve() 89 return new AnnotatedClassResolver(config, forType, r).resolveFully(); in resolve() 92 … public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, Class<?> forType) { in resolveWithoutSuperTypes() argument 93 return resolveWithoutSuperTypes(config, forType, config); in resolveWithoutSuperTypes() 96 public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, JavaType forType, in resolveWithoutSuperTypes() argument 99 if (forType.isArrayType() && skippableArray(config, forType.getRawClass())) { in resolveWithoutSuperTypes() 100 return createArrayType(config, forType.getRawClass()); in resolveWithoutSuperTypes() 102 return new AnnotatedClassResolver(config, forType, r).resolveWithoutSuperTypes(); in resolveWithoutSuperTypes() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/struct/ |
D | UnwrapSingleArrayScalarsTest.java | 49 final ObjectReader r = UNWRAPPING_READER.forType(BooleanBean.class); in testBooleanPrimitiveArrayUnwrap() 63 boolean[] array = UNWRAPPING_READER.forType(boolean[].class) in testBooleanPrimitiveArrayUnwrap() 79 NO_UNWRAPPING_READER.forType(IntBean.class) in testIntPrimitiveArrayUnwrap() 86 ObjectReader r = UNWRAPPING_READER.forType(IntBean.class); in testIntPrimitiveArrayUnwrap() 104 int[] array = UNWRAPPING_READER.forType(int[].class).readValue("[ [ null ] ]"); in testIntPrimitiveArrayUnwrap() 113 final ObjectReader unwrapR = UNWRAPPING_READER.forType(LongBean.class); in testLongPrimitiveArrayUnwrap() 114 final ObjectReader noUnwrapR = NO_UNWRAPPING_READER.forType(LongBean.class); in testLongPrimitiveArrayUnwrap() 140 long[] array = unwrapR.forType(long[].class) in testLongPrimitiveArrayUnwrap() 149 final ObjectReader unwrapR = UNWRAPPING_READER.forType(DoubleBean.class); in testDoubleAsArray() 150 final ObjectReader noUnwrapR = NO_UNWRAPPING_READER.forType(DoubleBean.class); in testDoubleAsArray() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | EnumAltIdTest.java | 89 READER_DEFAULT.forType(TestEnum.class).readValue("\"Jackson\""); in testFailWhenCaseSensitiveAndNameIsNotUpperCase() 98 ObjectReader r = READER_DEFAULT.forType(LowerCaseEnum.class) in testFailWhenCaseSensitiveAndToStringIsUpperCase() 111 READER_IGNORE_CASE.forType(TestEnum.class).readValue(quote("jackson"))); in testEnumDesIgnoringCaseWithLowerCaseContent() 127 TestEnum[] enums = READER_IGNORE_CASE.forType(TestEnum[].class) in testIgnoreCaseInEnumList() 136 ObjectReader r = READER_IGNORE_CASE.forType(new TypeReference<EnumSet<TestEnum>>() { }); in testIgnoreCaseInEnumSet() 153 EnumBean pojo = READER_DEFAULT.forType(EnumBean.class) in testIgnoreCaseViaFormat() 159 READER_DEFAULT.forType(StrictCaseBean.class) in testIgnoreCaseViaFormat()
|
D | JDKNumberDeserTest.java | 259 Number result = r.forType(Number.class).readValue(" 123 "); in testIntTypeOverride() 264 /*Object value =*/ r.forType(Object.class).readValue("123"); in testIntTypeOverride() 286 Number result = r.forType(Number.class).readValue(dec.toString()); in testFpTypeOverrideSimple() 291 Object value = r.forType(Object.class).readValue(dec.toString()); in testFpTypeOverrideSimple() 307 … List<Object> list = (List<Object>) r.forType(List.class).readValue("[ "+dec.toString()+" ]"); in testFpTypeOverrideStructured() 314 Map<?,?> map = r.forType(Map.class).readValue("{ \"a\" : "+dec.toString()+" }"); in testFpTypeOverrideStructured() 326 Object ob = r.forType(Object.class).readValue("42"); in testForceIntsToLongs() 330 Number n = r.forType(Number.class).readValue("42"); in testForceIntsToLongs()
|
D | EnumDeserializationTest.java | 363 assertNull(reader.forType(TestEnum.class).readValue("\"NO-SUCH-VALUE\"")); in testAllowUnknownEnumValuesReadAsNull() 364 assertNull(reader.forType(TestEnum.class).readValue(" 4343 ")); in testAllowUnknownEnumValuesReadAsNull() 374 assertNull(reader.forType(StrictEnumCreator.class).readValue("\"NO-SUCH-VALUE\"")); in testAllowUnknownEnumValuesReadAsNullWithCreatorMethod() 375 assertNull(reader.forType(StrictEnumCreator.class).readValue(" 4343 ")); in testAllowUnknownEnumValuesReadAsNullWithCreatorMethod() 381 EnumSet<TestEnum> result = reader.forType(new TypeReference<EnumSet<TestEnum>>() { }) in testAllowUnknownEnumValuesForEnumSets() 389 ClassWithEnumMapKey result = reader.forType(ClassWithEnumMapKey.class) in testAllowUnknownEnumValuesAsMapKeysReadAsNull()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/interop/ |
D | TestFormatDetection.java | 29 ObjectReader detecting = READER.forType(POJO.class); in testSimpleWithJSON() 38 ObjectReader detecting = READER.forType(POJO.class); in testSequenceWithJSON() 56 ObjectReader r2 = READER.forType(JsonNode.class); in testSequenceWithJSON() 77 ObjectReader detecting = READER.forType(POJO.class); in testInvalid()
|
/external/jcommander/src/test/java/com/beust/jcommander/ |
D | ConverterFactoryTest.java | 44 public Class<? extends IStringConverter<?>> getConverter(Class forType) { 45 return MAP.get(forType); 95 …public IStringConverter<?> getConverterInstance(Parameter parameter, Class<?> forType, String opti… in mainWithInstanceFactory() 96 return HostPort.class.equals(forType) ? new HostPortConverter() : null; in mainWithInstanceFactory()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ |
D | ObjectReader.java | 717 public ObjectReader forType(JavaType valueType) in forType() method in ObjectReader 741 public ObjectReader forType(Class<?> valueType) { in forType() method in ObjectReader 742 return forType(_config.constructType(valueType)); in forType() 754 public ObjectReader forType(TypeReference<?> valueTypeRef) { in forType() method in ObjectReader 755 return forType(_config.getTypeFactory().constructType(valueTypeRef.getType())); in forType() 763 return forType(valueType); in withType() 771 return forType(_config.constructType(valueType)); in withType() 779 return forType(_config.getTypeFactory().constructType(valueType)); in withType() 787 return forType(_config.getTypeFactory().constructType(valueTypeRef.getType())); in withType() 1191 return (T) forType(valueType).readValue(p); in readValue() [all …]
|
D | ObjectWriter.java | 421 public ObjectWriter forType(JavaType rootType) { in forType() method in ObjectWriter 432 public ObjectWriter forType(Class<?> rootType) { in forType() method in ObjectWriter 433 return forType(_config.constructType(rootType)); in forType() 443 public ObjectWriter forType(TypeReference<?> rootType) { in forType() method in ObjectWriter 444 return forType(_config.getTypeFactory().constructType(rootType.getType())); in forType() 452 return forType(rootType); in withType() 460 return forType(rootType); in withType() 468 return forType(rootType); in withType()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/validate/ |
D | FullStreamReadTest.java | 109 _verifyCollection((List<?>) strictWithComments.forType(List.class) in testMapperFailOnTrailing() 163 Object ob = strictWithComments.forType(List.class) in testMapperFailOnTrailingWithNull() 176 ObjectReader rColl = R.forType(List.class); in testReaderAcceptTrailing() 185 ObjectReader strictRForList = strictR.forType(List.class); in testReaderFailOnTrailing() 236 …_verifyCollection((List<?>)strictRWithComments.forType(List.class).readValue(JSON_OK_ARRAY_WITH_CO… in testReaderFailOnTrailing() 243 ObjectReader strictRForList = strictR.forType(List.class); in testReaderFailOnTrailingWithNull() 284 Object ob = strictRWithComments.forType(List.class).readValue(JSON_OK_NULL_WITH_COMMENT); in testReaderFailOnTrailingWithNull()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/ |
D | BeanSerializer.java | 87 public static BeanSerializer createDummy(JavaType forType) in createDummy() argument 89 return new BeanSerializer(forType, null, NO_PROPS, null); in createDummy() 98 public static BeanSerializer createDummy(JavaType forType, BeanSerializerBuilder builder) in createDummy() argument 100 return new BeanSerializer(forType, builder, NO_PROPS, null); in createDummy()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/views/ |
D | TestViewDeserialization.java | 75 .forType(Bean.class) in testSimple() 84 .forType(Bean.class) in testSimple() 112 .forType(DefaultsBean.class) in testWithoutDefaultInclusion()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/module/ |
D | SimpleValueInstantiators.java | 34 public SimpleValueInstantiators addValueInstantiator(Class<?> forType, in addValueInstantiator() argument 37 _classMappings.put(new ClassKey(forType), inst); in addValueInstantiator()
|
/external/jackson-databind/src/test/java/perf/ |
D | ObjectReaderTestBase.java | 73 .forType(inputClass1); in doTest() 75 .forType(inputClass2); in doTest() 115 .forType(inputClass1); in doTest() 118 .forType(inputClass2); in doTest()
|
D | ObjectWriterTestBase.java | 30 final ObjectWriter writer1 = writer0.forType(inputClass1); in test() 31 final ObjectWriter writer2 = writer0.forType(inputClass2); in test()
|
/external/guice/core/src/com/google/inject/internal/ |
D | BytecodeGen.java | 186 if (Visibility.forType(type) == Visibility.PUBLIC) { in getClassLoader() 357 if (forType(method.getReturnType()) == SAME_PACKAGE) { in forMember() 364 if (forType(type) == SAME_PACKAGE) { in forMember() 372 public static Visibility forType(Class<?> type) { in forType() method in BytecodeGen.Visibility
|
/external/jcommander/src/main/java/com/beust/jcommander/internal/ |
D | DefaultConverterFactory.java | 76 public Class<? extends IStringConverter<?>> getConverter(Class forType) { in getConverter() argument 77 return classConverters.get(forType); in getConverter()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/ |
D | CoerceEmptyArrayTest.java | 225 Object result = r.forType(cls).readValue(EMPTY_ARRAY); in _verifyToNullCoercion() 236 Object result = r.forType(cls).readValue(EMPTY_ARRAY); in _verifyToEmptyCoercion() 249 r.forType(targetType).readValue(EMPTY_ARRAY); in _verifyFailForEmptyArray()
|
/external/jcommander/src/main/java/com/beust/jcommander/ |
D | IStringConverterInstanceFactory.java | 19 …IStringConverter<?> getConverterInstance(Parameter parameter, Class<?> forType, String optionName); in getConverterInstance() argument
|
D | IStringConverterFactory.java | 30 <T> Class<? extends IStringConverter<T>> getConverter(Class<T> forType); in getConverter() argument
|
/external/guice/core/src/com/google/inject/spi/ |
D | DependencyAndSource.java | 62 return StackTraceElements.forType((Class) source).toString(); in getBindingSource()
|