Home
last modified time | relevance | path

Searched refs:forType (Results 1 – 25 of 54) sorted by relevance

123

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectReaderValueOfWithValueTypeTest.java44 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 …]
DObjectReaderTest.java244 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/
DTextWriterLogger.cs34 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; }
DConsoleLogger.cs34 private ConsoleLogger(Type forType) : base(() => Console.Error, forType) in ConsoleLogger() argument
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DAnnotatedClassResolver.java83 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/
DUnwrapSingleArrayScalarsTest.java49 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/
DEnumAltIdTest.java89 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()
DJDKNumberDeserTest.java259 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()
DEnumDeserializationTest.java363 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/
DTestFormatDetection.java29 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/
DConverterFactoryTest.java44 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/
DObjectReader.java717 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 …]
DObjectWriter.java421 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/
DFullStreamReadTest.java109 _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/
DBeanSerializer.java87 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/
DTestViewDeserialization.java75 .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/
DSimpleValueInstantiators.java34 public SimpleValueInstantiators addValueInstantiator(Class<?> forType, in addValueInstantiator() argument
37 _classMappings.put(new ClassKey(forType), inst); in addValueInstantiator()
/external/jackson-databind/src/test/java/perf/
DObjectReaderTestBase.java73 .forType(inputClass1); in doTest()
75 .forType(inputClass2); in doTest()
115 .forType(inputClass1); in doTest()
118 .forType(inputClass2); in doTest()
DObjectWriterTestBase.java30 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/
DBytecodeGen.java186 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/
DDefaultConverterFactory.java76 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/
DCoerceEmptyArrayTest.java225 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/
DIStringConverterInstanceFactory.java19 …IStringConverter<?> getConverterInstance(Parameter parameter, Class<?> forType, String optionName); in getConverterInstance() argument
DIStringConverterFactory.java30 <T> Class<? extends IStringConverter<T>> getConverter(Class<T> forType); in getConverter() argument
/external/guice/core/src/com/google/inject/spi/
DDependencyAndSource.java62 return StackTraceElements.forType((Class) source).toString(); in getBindingSource()

123