Home
last modified time | relevance | path

Searched refs:rootType (Results 1 – 24 of 24) sorted by relevance

/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/
DDefaultSerializerProvider.java333 … public void serializeValue(JsonGenerator gen, Object value, JavaType rootType) throws IOException in serializeValue() argument
341 if (!rootType.getRawClass().isAssignableFrom(value.getClass())) { in serializeValue()
342 _reportIncompatibleRootType(value, rootType); in serializeValue()
345 JsonSerializer<Object> ser = findTypedValueSerializer(rootType, true, null); in serializeValue()
349 _serialize(gen, value, ser, _config.findRootName(rootType)); in serializeValue()
371 public void serializeValue(JsonGenerator gen, Object value, JavaType rootType, in serializeValue() argument
380 if ((rootType != null) && !rootType.getRawClass().isAssignableFrom(value.getClass())) { in serializeValue()
381 _reportIncompatibleRootType(value, rootType); in serializeValue()
385 ser = findTypedValueSerializer(rootType, true, null); in serializeValue()
390 rootName = (rootType == null) in serializeValue()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DRootNameLookup.java25 public PropertyName findRootName(JavaType rootType, MapperConfig<?> config) { in findRootName() argument
26 return findRootName(rootType.getRawClass(), config); in findRootName()
29 public PropertyName findRootName(Class<?> rootType, MapperConfig<?> config) in findRootName() argument
31 ClassKey key = new ClassKey(rootType); in findRootName()
36 BeanDescription beanDesc = config.introspectClassAnnotations(rootType); in findRootName()
43 name = PropertyName.construct(rootType.getSimpleName()); in findRootName()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DObjectWriter.java98 JavaType rootType, PrettyPrinter pp) in ObjectWriter() argument
107 if (rootType == null) { in ObjectWriter()
109 } else if (rootType.hasRawClass(Object.class)) { in ObjectWriter()
112 _prefetch = Prefetch.empty.forRootType(this, rootType); in ObjectWriter()
114 _prefetch = Prefetch.empty.forRootType(this, rootType.withStaticTyping()); in ObjectWriter()
421 public ObjectWriter forType(JavaType rootType) { in forType() argument
422 return _new(_generatorSettings, _prefetch.forRootType(this, rootType)); in forType()
432 public ObjectWriter forType(Class<?> rootType) { in forType() argument
433 return forType(_config.constructType(rootType)); in forType()
443 public ObjectWriter forType(TypeReference<?> rootType) { in forType() argument
[all …]
DObjectMapper.java761 JavaType rootType, PrettyPrinter pp) { in _newWriter() argument
762 return new ObjectWriter(this, config, rootType, pp); in _newWriter()
3787 public ObjectWriter writerFor(Class<?> rootType) {
3789 ((rootType == null) ? null :_typeFactory.constructType(rootType)),
3804 public ObjectWriter writerFor(TypeReference<?> rootType) {
3806 ((rootType == null) ? null : _typeFactory.constructType(rootType)),
3821 public ObjectWriter writerFor(JavaType rootType) {
3822 return _newWriter(getSerializationConfig(), rootType, /*PrettyPrinter*/null);
3901 public ObjectWriter writerWithType(Class<?> rootType) {
3904 ((rootType == null) ? null :_typeFactory.constructType(rootType)),
[all …]
DSerializerProvider.java1360 protected void _reportIncompatibleRootType(Object value, JavaType rootType) throws IOException in _reportIncompatibleRootType() argument
1363 if (rootType.isPrimitive()) { in _reportIncompatibleRootType()
1364 Class<?> wrapperType = ClassUtil.wrapperType(rootType.getRawClass()); in _reportIncompatibleRootType()
1370 reportBadDefinition(rootType, String.format( in _reportIncompatibleRootType()
1372 rootType, ClassUtil.classNameOf(value))); in _reportIncompatibleRootType()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUResourceBundle.java329 RootType rootType = ROOT_CACHE.get(baseName); in getRootType() local
331 if (rootType == null) { in getRootType()
335 rootType = RootType.ICU; in getRootType()
339 rootType = RootType.JAVA; in getRootType()
342 rootType = RootType.MISSING; in getRootType()
346 ROOT_CACHE.put(baseName, rootType); in getRootType()
349 return rootType; in getRootType()
352 private static void setRootType(String baseName, RootType rootType) { in setRootType() argument
353 ROOT_CACHE.put(baseName, rootType); in setRootType()
371 RootType rootType = getRootType(baseName, root); in instantiateBundle() local
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DUResourceBundle.java316 RootType rootType = ROOT_CACHE.get(baseName); in getRootType() local
318 if (rootType == null) { in getRootType()
322 rootType = RootType.ICU; in getRootType()
326 rootType = RootType.JAVA; in getRootType()
329 rootType = RootType.MISSING; in getRootType()
333 ROOT_CACHE.put(baseName, rootType); in getRootType()
336 return rootType; in getRootType()
339 private static void setRootType(String baseName, RootType rootType) { in setRootType() argument
340 ROOT_CACHE.put(baseName, rootType); in setRootType()
357 RootType rootType = getRootType(baseName, root); in instantiateBundle() local
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/
DStdSubtypeResolver.java114 NamedType rootType = new NamedType(rawBase, null); in collectAndResolveSubtypesByClass() local
118 _collectAndResolve(ac, rootType, config, ai, collected); in collectAndResolveSubtypesByClass()
143 NamedType rootType = new NamedType(type.getRawType(), null); in collectAndResolveSubtypesByClass() local
144 _collectAndResolve(type, rootType, config, ai, subtypes); in collectAndResolveSubtypesByClass()
166 NamedType rootType = new NamedType(rawBase, null); in collectAndResolveSubtypesByTypeId() local
169 _collectAndResolveByTypeId(ac, rootType, config, typesHandled, byName); in collectAndResolveSubtypesByTypeId()
203 NamedType rootType = new NamedType(rawBase, null); in collectAndResolveSubtypesByTypeId() local
204 _collectAndResolveByTypeId(baseType, rootType, config, typesHandled, byName); in collectAndResolveSubtypesByTypeId()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DDefaultDeserializationContext.java328 JavaType rootType, JsonDeserializer<Object> deser, in _unwrapAndDeserialize() argument
332 PropertyName expRootName = _config.findRootName(rootType); in _unwrapAndDeserialize()
336 reportWrongTokenException(rootType, JsonToken.START_OBJECT, in _unwrapAndDeserialize()
341 reportWrongTokenException(rootType, JsonToken.FIELD_NAME, in _unwrapAndDeserialize()
347 reportPropertyInputMismatch(rootType, actualName, in _unwrapAndDeserialize()
349 actualName, expSimpleName, rootType); in _unwrapAndDeserialize()
361 reportWrongTokenException(rootType, JsonToken.END_OBJECT, in _unwrapAndDeserialize()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DTestGenericListSerialization.java61 …JavaType rootType = TypeFactory.defaultInstance().constructType(new TypeReference<JSONResponse<Lis… in testSubTypesFor356() local
62 byte[] json = mapper.writerFor(rootType).writeValueAsBytes(input); in testSubTypesFor356()
64 JSONResponse<List<Parent>> out = mapper.readValue(json, 0, json.length, rootType); in testSubTypesFor356()
DTestTypedContainerSerialization.java129 … JavaType rootType = mapper.getTypeFactory().constructParametricType(Iterator.class, Animal.class); in testIssue329() local
130 String json = mapper.writerFor(rootType).writeValueAsString(animals.iterator()); in testIssue329()
/external/llvm-project/mlir/test/Conversion/PDLToPDLInterp/
Dpdl-to-pdl-interp-rewriter.mlir102 %rootType = pdl.type
104 %root, %results:2 = pdl.operation "foo.op" -> %rootType, %rootType1
107 %newOp, %newResults:2 = pdl.operation "foo.op" -> %rootType, %newType1
121 %rootType = pdl.type
122 %root, %result = pdl.operation "foo.op" -> %rootType
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/type/
DClassStack.java20 public ClassStack(Class<?> rootType) { in ClassStack() argument
21 this(null, rootType); in ClassStack()
/external/cldr/tools/java/org/unicode/cldr/util/
DDtdType.java37 public final DtdType rootType; field in DtdType
51 this.rootType = realType == null ? this : realType; in DtdType()
DDtdData.java338 this.ROOT = elementFrom(type.rootType.toString()); in DtdData()
612 if (explicitDtdType != dtdType && explicitDtdType != dtdType.rootType) { in handleStartDtd()
702 if (type != type.rootType) { in getInstance()
704 readFile(type.rootType, xfr, directory); in getInstance()
944 if (dtdType.rootType == dtdType) { in Seen()
947 DtdData otherData = DtdData.getInstance(dtdType.rootType); in Seen()
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationUserDefinedIO.cpp117 const glu::VarType& rootType, in glslTraverseBasicTypes() argument
122 if (rootType.isBasicType()) in glslTraverseBasicTypes()
123 return visit(rootName, rootType.getBasicType(), indentationDepth); in glslTraverseBasicTypes()
124 else if (rootType.isArrayType()) in glslTraverseBasicTypes()
128 const std::string arrayLength = de::toString(rootType.getArraySize()); in glslTraverseBasicTypes()
129 …int " + loopIndexName + " = 0; " + loopIndexName + " < " + de::toString(rootType.getArraySize()) +… in glslTraverseBasicTypes()
131 …glslTraverseBasicTypes(rootName + "[" + loopIndexName + "]", rootType.getElementType(), arrayNesti… in glslTraverseBasicTypes()
134 else if (rootType.isStructType()) in glslTraverseBasicTypes()
136 const glu::StructType& structType = *rootType.getStructPtr(); in glslTraverseBasicTypes()
/external/dagger2/java/dagger/hilt/processor/internal/root/
DRootProcessor.java71 .map(rootType -> rootType.className().toString()) in getSupportedAnnotationTypes()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DMapperConfigBase.java747 public PropertyName findRootName(JavaType rootType) { in findRootName() argument
751 return _rootNames.findRootName(rootType, this); in findRootName()
DMapperConfig.java634 public abstract PropertyName findRootName(JavaType rootType); in findRootName() argument
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestComparisonBuilder.java93 if (dtd.rootType != dtd) { in TestDtdElements()
/external/icu/icu4c/source/common/
Duresdata.cpp161 UResType rootType; in res_init() local
176 rootType=(UResType)RES_GET_TYPE(pResData->rootRes); in res_init()
177 if(!URES_IS_TABLE(rootType)) { in res_init()
/external/dokka/core/src/main/kotlin/Analysis/
DCoreProjectFileIndex.kt169 override fun getFiles(rootType: OrderRootType): Array<out VirtualFile> = classpathRoots in getFiles()
/external/skqp/tools/bookmaker/
DincludeWriter.cpp2220 MarkType rootType = rootDef->fMarkType; in resolveRef() local
2221 if (MarkType::kSubtopic == rootType || MarkType::kTopic == rootType in resolveRef()
2222 || MarkType::kAlias == rootType) { in resolveRef()
2232 auto parent = MarkType::kAlias == rootType ? rootDef->fParent : rootDef; in resolveRef()
/external/deqp/modules/gles31/functional/
Des31fTessellationTests.cpp5661 const glu::VarType& rootType,
5711 const glu::VarType& rootType, in glslTraverseBasicTypes() argument
5716 if (rootType.isBasicType()) in glslTraverseBasicTypes()
5717 return visit(rootName, rootType.getBasicType(), indentationDepth); in glslTraverseBasicTypes()
5718 else if (rootType.isArrayType()) in glslTraverseBasicTypes()
5722 const string arrayLength = de::toString(rootType.getArraySize()); in glslTraverseBasicTypes()
5723 …int " + loopIndexName + " = 0; " + loopIndexName + " < " + de::toString(rootType.getArraySize()) +… in glslTraverseBasicTypes()
5725 …glslTraverseBasicTypes(rootName + "[" + loopIndexName + "]", rootType.getElementType(), arrayNesti… in glslTraverseBasicTypes()
5728 else if (rootType.isStructType()) in glslTraverseBasicTypes()
5730 const glu::StructType& structType = *rootType.getStructPtr(); in glslTraverseBasicTypes()