Home
last modified time | relevance | path

Searched refs:constructType (Results 1 – 25 of 83) sorted by relevance

1234

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/
DTestTypeFactory.java104 assertSame(clz, tf.constructType(clz).getRawClass()); in testSimpleTypes()
105 assertSame(clz, tf.constructType(clz).getRawClass()); in testSimpleTypes()
122 assertSame(clz, tf.constructType(clz).getRawClass()); in testArrays()
132 JavaType t = tf.constructType(Properties.class); in testProperties()
146 JavaType t = tf.constructType(new TypeReference<Iterator<String>>() { }); in testIterator()
150 assertEquals(tf.constructType(String.class), t.containedType(0)); in testIterator()
165 JavaType strC = tf.constructType(String.class); in testParametricTypes()
209 final JavaType strC = tf.constructType(String.class); in testInvalidParametricTypes()
233 JavaType t = tf.constructType(java.util.Calendar.class); in testCanonicalNames()
239 t = tf.constructType(java.util.ArrayList.class); in testCanonicalNames()
[all …]
DTestJavaType.java72 JavaType t = tf.constructType(m.getReturnType()); in testLocalType728()
75 t = tf.constructType(m.getGenericReturnType()); in testLocalType728()
79 t = tf.constructType(m.getParameterTypes()[0]); in testLocalType728()
81 t = tf.constructType(m.getGenericParameterTypes()[0]); in testLocalType728()
88 JavaType baseType = tf.constructType(BaseType.class); in testSimpleClass()
113 JavaType baseType = tf.constructType(BaseType.class); in testDeprecated()
129 JavaType arrayT = ArrayType.construct(tf.constructType(String.class), null); in testArrayType()
144 assertTrue(arrayT.equals(ArrayType.construct(tf.constructType(String.class), null))); in testArrayType()
145 assertFalse(arrayT.equals(ArrayType.construct(tf.constructType(Integer.class), null))); in testArrayType()
151 JavaType mapT = tf.constructType(HashMap.class); in testMapType()
[all …]
DTestTypeResolution.java43 JavaType t = tf.constructType(new TypeReference<LongValuedMap<String>>() { }); in testMaps()
46 assertEquals(tf.constructType(String.class), type.getKeyType()); in testMaps()
47 assertEquals(tf.constructType(Long.class), type.getContentType()); in testMaps()
53 JavaType t = tf.constructType(new TypeReference<MyLongList<Integer>>() {}); in testListViaTypeRef()
56 assertEquals(tf.constructType(Long.class), type.getContentType()); in testListViaTypeRef()
62 JavaType t = tf.constructType(LongList.class); in testListViaClass()
65 assertEquals(tf.constructType(Long.class), type.getContentType()); in testListViaClass()
73 JavaType t = tf.constructType(DoubleRange.class); in testGeneric()
79 t = tf.constructType(new TypeReference<DoubleRange>() { }); in testGeneric()
DRecursiveTypeTest.java58 JavaType type = tf.constructType(HashTree.class); in testRecursiveType()
77 JavaType t = MAPPER.constructType(ImmutablePair.class); in testRecursivePair()
95 String desc = tf.constructType(DataDefinition.class).toString(); in testJavaTypeToString()
109 tf.constructType(Base.class); // must be constructed before sub to set the cache correctly in testSuperClassWithReferencedJavaType()
110 JavaType subType = tf.constructType(Sub.class); in testSuperClassWithReferencedJavaType()
DTestTypeFactory1604.java39 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedSimple()
54 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedNested()
69 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedSneaky()
86 JavaType type = tf.constructType(new TypeReference<TwoParam1604<String,List<Long>>>() { }); in testTwoParamSneakyCustom()
111 JavaType base = tf.constructType(new TypeReference<Data1604<String>>() { }); in testErrorForMismatch()
127 JavaType base = tf.constructType(new TypeReference<Either<Object, Object>>() { }); in testResolveGenericPartialSubtypes()
DTestAnnotatedClass.java83 JavaType t = MAPPER.constructType(FieldBean.class); in testFieldIntrospection()
102 JavaType t = MAPPER.constructType(bean.getClass()); in testConstructorIntrospection()
110 MAPPER.constructType(int[].class), null); in testArrayTypeIntrospection()
DTestTypeFactoryWithRecursiveTypes.java26 tf.constructType(Base.class); in testBasePropertiesIncludedWhenSerializingSubWhenSubTypeLoadedAfterBaseType()
27 tf.constructType(Sub.class); in testBasePropertiesIncludedWhenSerializingSubWhenSubTypeLoadedAfterBaseType()
DDeprecatedConstructType1456Test.java33 … JavaType resolvedType = MAPPER.getTypeFactory().constructType(entityType, ImplController.class); in testGenericResolutionUsingDeprecated()
41 MAPPER.constructType(ImplController.class)); in testGenericParameterViaClass()
DTestTypeBindings.java47 JavaType type = DEFAULT_TF.constructType(InnerGenericTyping.InnerClass.class); in testInnerType()
60 JavaType type = DEFAULT_TF.constructType(HashTree.class); in testRecursiveType()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoerceContainersTest.java31 .constructType(new TypeReference<List<Double>>() { }); in testScalarCollections()
41 .constructType(new TypeReference<List<String>>() { }); in testStringCollections()
57 .constructType(new TypeReference<Map<Long, Boolean>>() { }); in testScalarMap()
67 .constructType(new TypeReference<EnumMap<ABC, Boolean>>() { }); in testEnumMap()
83 .constructType(new TypeReference<Object[]>() { }); in testObjectArray()
93 .constructType(new TypeReference<String[]>() { }); in testStringArray()
155 _verifyNoCoercion(VANILLA_MAPPER.constructType(targetType)); in _verifyNoCoercion()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/util/
DBeanUtilTest.java52 BeanUtil.getDefaultValue(tf.constructType(Map.class))); in testGetDefaultValue()
54 BeanUtil.getDefaultValue(tf.constructType(List.class))); in testGetDefaultValue()
56 BeanUtil.getDefaultValue(tf.constructType(Object[].class))); in testGetDefaultValue()
59 BeanUtil.getDefaultValue(tf.constructType(AtomicReference.class))); in testGetDefaultValue()
61 BeanUtil.getDefaultValue(tf.constructType(String.class))); in testGetDefaultValue()
64 BeanUtil.getDefaultValue(tf.constructType(Integer.class))); in testGetDefaultValue()
68 assertNull(BeanUtil.getDefaultValue(tf.constructType(getClass()))); in testGetDefaultValue()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/cfg/
DDatabindContextTest.java13 assertNull(ctxt.constructType((Class<?>) null)); in testDeserializationContext()
14 assertNull(ctxt.constructType((java.lang.reflect.Type) null)); in testDeserializationContext()
20 assertNull(ctxt.constructType(null)); in testSerializationContext()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/
DPOJOPropertiesCollectorTest.java420 … beanDesc = MAPPER.getSerializationConfig().introspect(MAPPER.constructType(Issue701Bean.class)); in testInnerClassWithAnnotationsInCreator()
423 … beanDesc = MAPPER.getDeserializationConfig().introspect(MAPPER.constructType(Issue701Bean.class)); in testInnerClassWithAnnotationsInCreator()
433 …cription beanDesc = mapper.getSerializationConfig().introspect(mapper.constructType(Jackson703.cla… in testUseAnnotationsFalse()
444 (MAPPER.constructType(Issue744Bean.class)); in testJackson744()
456 …iption beanDesc = MAPPER.getDeserializationConfig().introspect(MAPPER.constructType(PropDescBean.c… in testPropertyDesc()
459 … beanDesc = MAPPER.getSerializationConfig().introspect(MAPPER.constructType(PropDescBean.class)); in testPropertyDesc()
466 …iption beanDesc = MAPPER.getDeserializationConfig().introspect(MAPPER.constructType(PropDescBean.c… in testPropertyIndex()
468 … beanDesc = MAPPER.getSerializationConfig().introspect(MAPPER.constructType(PropDescBean.class)); in testPropertyIndex()
544 m0.constructType(cls), null, true, "set"); in collector()
547 m0.constructType(cls), null, false, "set"); in collector()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/interop/
DDeprecatedTypeHandling1102Test.java98 JavaType t = tf.constructType(Point.class, getClass()); in testDeprecatedTypeResolution()
102 JavaType t2 = tf.constructType(Point.class, (Class<?>) null); in testDeprecatedTypeResolution()
105 JavaType ctxt = tf.constructType(getClass()); in testDeprecatedTypeResolution()
106 JavaType t3 = tf.constructType(Point.class, ctxt); in testDeprecatedTypeResolution()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DObjectMapper.java2144 public JavaType constructType(Type t) {
2146 return _typeFactory.constructType(t);
2759 return (T) _readValue(getDeserializationConfig(), p, _typeFactory.constructType(valueType));
2784 … return (T) _readValue(getDeserializationConfig(), p, _typeFactory.constructType(valueTypeRef));
2869 JsonNode n = (JsonNode) _readValue(cfg, p, constructType(JsonNode.class));
2935 return readValues(p, _typeFactory.constructType(valueType));
2945 return readValues(p, _typeFactory.constructType(valueTypeRef));
3360 …return (T) _readMapAndClose(_jsonFactory.createParser(src), _typeFactory.constructType(valueType));
3380 …return (T) _readMapAndClose(_jsonFactory.createParser(src), _typeFactory.constructType(valueTypeRe…
3426 …return (T) _readMapAndClose(_jsonFactory.createParser(src), _typeFactory.constructType(valueType));
[all …]
DSerializerProvider.java518 ser = _serializerCache.untypedValueSerializer(_config.constructType(valueType)); in findValueSerializer()
589 ser = _serializerCache.untypedValueSerializer(_config.constructType(valueType)); in findValueSerializer()
680 ser = _serializerCache.untypedValueSerializer(_config.constructType(valueType)); in findPrimaryPropertySerializer()
752 ser = _serializerCache.untypedValueSerializer(_config.constructType(valueType)); in findContentValueSerializer()
801 _config.constructType(valueType)); in findTypedValueSerializer()
891 return findKeySerializer(_config.constructType(rawKeyType), property); in findKeySerializer()
1295 …idDefinitionException e = InvalidDefinitionException.from(getGenerator(), msg, constructType(raw)); in reportBadDefinition()
1419 JavaType fullType = _config.constructType(rawType); in _createAndCacheUntypedSerializer()
DDeserializationContext.java656 public final JavaType constructType(Class<?> cls) { in constructType() method in DeserializationContext
657 return (cls == null) ? null : _config.constructType(cls); in constructType()
895 return readValue(p, getTypeFactory().constructType(type)); in readValue()
920 return readPropertyValue(p, prop, getTypeFactory().constructType(type)); in readPropertyValue()
951 return (JsonNode) findRootValueDeserializer(_config.constructType(JsonNode.class)) in readTree()
1189 reportBadDefinition(constructType(instClass), String.format( in handleMissingInstantiator()
1248 reportBadDefinition(constructType(instClass), String.format( in handleInstantiationProblem()
1282 return handleUnexpectedToken(constructType(instClass), p.currentToken(), p, null); in handleUnexpectedToken()
1304 return handleUnexpectedToken(constructType(instClass), t, p, msg, msgArgs); in handleUnexpectedToken()
1475 JavaType type = constructType(deser.handledType()); in handleBadMerge()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DJsonLocationInstantiator.java32 JavaType intType = config.constructType(Integer.TYPE); in getFromObjectArguments()
33 JavaType longType = config.constructType(Long.TYPE); in getFromObjectArguments()
35 creatorProp("sourceRef", config.constructType(Object.class), 0), in getFromObjectArguments()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DMapperConfig.java305 public final JavaType constructType(Class<?> cls) { in constructType() method in MapperConfig
306 return getTypeFactory().constructType(cls); in constructType()
317 public final JavaType constructType(TypeReference<?> valueTypeRef) { in constructType() method in MapperConfig
318 return getTypeFactory().constructType(valueTypeRef.getType()); in constructType()
337 return introspectClassAnnotations(constructType(cls)); in introspectClassAnnotations()
354 return introspectDirectClassAnnotations(constructType(cls)); in introspectDirectClassAnnotations()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DTypeResolutionContext.java35 return _typeFactory.constructType(type); in resolveType()
37 return _typeFactory.constructType(type, _bindings); in resolveType()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ext/
DTestCoreXMLTypes.java94 sers.findBeanDeserializer(f.constructType(Duration.class), null, null); in testDeserializerLoading()
95 sers.findBeanDeserializer(f.constructType(XMLGregorianCalendar.class), null, null); in testDeserializerLoading()
96 sers.findBeanDeserializer(f.constructType(QName.class), null, null); in testDeserializerLoading()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DTestValueInstantiator.java120 … CreatorProperty.construct(new PropertyName("type"), config.constructType(Class.class), null, in getFromObjectArguments()
150 … CreatorProperty.construct(new PropertyName("name"), config.constructType(String.class), null, in getFromObjectArguments()
174 return config.constructType(Object.class); in getDelegateType()
211 return config.constructType(Object.class); in getDelegateType()
250 return TypeFactory.defaultInstance().constructType(Object.class); in getDelegateType()
318 return config.constructType(Map.class); in getDelegateType()
430 … CreatorProperty.construct(new PropertyName("secret"), config.constructType(String.class), null, in testPropertyBasedBeanInstantiator()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/
DExternalTypeId2588Test.java56 return context.constructType(Cat.class); in typeFromId()
58 return context.constructType(Dog.class); in typeFromId()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/type/
DTypeFactory.java280 return defaultInstance().constructType(t).getRawClass(); in rawClass()
650 return findTypeParameters(constructType(clz, bindings), expType); in findTypeParameters()
658 return findTypeParameters(constructType(clz), expType); in findTypeParameters()
697 public JavaType constructType(Type type) { in constructType() method in TypeFactory
709 public JavaType constructType(Type type, TypeBindings bindings) { in constructType() method in TypeFactory
719 public JavaType constructType(TypeReference<?> typeRef) in constructType() method in TypeFactory
747 public JavaType constructType(Type type, Class<?> contextClass) { in constructType() method in TypeFactory
748 JavaType contextType = (contextClass == null) ? null : constructType(contextClass); in constructType()
749 return constructType(type, contextType); in constructType()
756 public JavaType constructType(Type type, JavaType contextType) { in constructType() method in TypeFactory
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DparseConst.cpp46 …TConstTraverser(const TConstUnionArray& cUnion, bool singleConstParam, TOperator constructType, co… in TConstTraverser() argument
48 …constructorType(constructType), singleConstantParam(singleConstParam), error(false), isMatrix(fals… in TConstTraverser()

1234