Home
last modified time | relevance | path

Searched refs:GetJavaType (Results 1 – 23 of 23) sorted by relevance

/external/protobuf/src/google/protobuf/compiler/java/
Djava_map_field_lite.cc62 if (GetJavaType(field) == JAVATYPE_MESSAGE) { in TypeName()
64 } else if (GetJavaType(field) == JAVATYPE_ENUM) { in TypeName()
67 return boxed ? BoxedPrimitiveTypeName(GetJavaType(field)) in TypeName()
68 : PrimitiveTypeName(GetJavaType(field)); in TypeName()
88 const JavaType keyJavaType = GetJavaType(key); in SetMessageVariables()
89 const JavaType valueJavaType = GetJavaType(value); in SetMessageVariables()
104 if (GetJavaType(value) == JAVATYPE_ENUM) { in SetMessageVariables()
168 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateInterfaceMembers()
301 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateMembers()
475 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateMembers()
[all …]
Djava_map_field.cc62 if (GetJavaType(field) == JAVATYPE_MESSAGE) { in TypeName()
64 } else if (GetJavaType(field) == JAVATYPE_ENUM) { in TypeName()
67 return boxed ? BoxedPrimitiveTypeName(GetJavaType(field)) in TypeName()
68 : PrimitiveTypeName(GetJavaType(field)); in TypeName()
88 const JavaType keyJavaType = GetJavaType(key); in SetMessageVariables()
89 const JavaType valueJavaType = GetJavaType(value); in SetMessageVariables()
185 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateInterfaceMembers()
297 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateMembers()
365 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateBuilderMembers()
492 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateMapGetters()
[all …]
Djava_field.cc71 switch (GetJavaType(field)) { in MakeImmutableGenerator()
92 switch (GetJavaType(field)) { in MakeImmutableGenerator()
107 switch (GetJavaType(field)) { in MakeImmutableGenerator()
128 switch (GetJavaType(field)) { in MakeImmutableLiteGenerator()
149 switch (GetJavaType(field)) { in MakeImmutableLiteGenerator()
164 switch (GetJavaType(field)) { in MakeImmutableLiteGenerator()
Djava_primitive_field.cc66 JavaType javaType = GetJavaType(descriptor); in SetPrimitiveVariables()
119 if (IsReferenceType(GetJavaType(descriptor))) { in SetPrimitiveVariables()
278 JavaType type = GetJavaType(descriptor_); in GenerateBuilderMembers()
380 switch (GetJavaType(descriptor_)) { in GenerateEqualsCode()
424 switch (GetJavaType(descriptor_)) { in GenerateHashCode()
473 return BoxedPrimitiveTypeName(GetJavaType(descriptor_)); in GetBoxedType()
591 if (GetJavaType(descriptor_) == JAVATYPE_BYTES) { in GenerateSerializationCode()
609 if (GetJavaType(descriptor_) == JAVATYPE_BYTES) { in GenerateSerializedSizeCode()
952 return BoxedPrimitiveTypeName(GetJavaType(descriptor_)); in GetBoxedType()
Djava_helpers.cc321 JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType() function
397 return PrimitiveTypeName(GetJavaType(descriptor)); in PrimitiveTypeName()
430 return BoxedPrimitiveTypeName(GetJavaType(descriptor)); in BoxedPrimitiveTypeName()
434 const JavaType javaType = GetJavaType(field); in GetOneofStoredType()
613 return GetJavaType(field) == JAVATYPE_BYTES && in IsByteStringWithCustomDefaultValue()
867 if (GetJavaType(field) == JAVATYPE_MESSAGE) { in HasRequiredFields()
972 if (field->is_required() || (GetJavaType(field) == JAVATYPE_MESSAGE && in GetExperimentalJavaFieldType()
981 if (GetJavaType(value) == JAVATYPE_ENUM) { in GetExperimentalJavaFieldType()
Djava_primitive_field_lite.cc73 JavaType javaType = GetJavaType(descriptor); in SetPrimitiveVariables()
251 JavaType type = GetJavaType(descriptor_); in GenerateMembers()
327 return BoxedPrimitiveTypeName(GetJavaType(descriptor_)); in GetBoxedType()
627 return BoxedPrimitiveTypeName(GetJavaType(descriptor_)); in GetBoxedType()
Djava_extension.cc84 JavaType java_type = GetJavaType(descriptor); in InitTemplateVars()
Djava_message.cc533 "field_type", PrimitiveTypeName(GetJavaType(descriptor_->field(0)))); in Generate()
809 if (GetJavaType(field) == JAVATYPE_MESSAGE && in GenerateDescriptorMethods()
897 if (GetJavaType(field) == JAVATYPE_MESSAGE && in GenerateIsInitialized()
989 return GetJavaType(field) == JAVATYPE_MESSAGE && in CheckHasBitsForEqualsAndHashCode()
Djava_message_lite.cc452 "field_type", PrimitiveTypeName(GetJavaType(descriptor_->field(0)))); in Generate()
540 (GetJavaType(descriptor_->field(i)) == JAVATYPE_MESSAGE && in GenerateDynamicMethodNewBuildMessageInfo()
Djava_message_builder.cc211 if (GetJavaType(field) == JAVATYPE_MESSAGE && in GenerateDescriptorMethods()
647 if (GetJavaType(field) == JAVATYPE_MESSAGE && in GenerateIsInitialized()
Djava_helpers.h217 JavaType GetJavaType(const FieldDescriptor* field);
Djava_file.cc97 if (GetJavaType(fields[i]) == JAVATYPE_MESSAGE) { in CollectExtensions()
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_primitive_field.cc181 && (GetJavaType(descriptor) == JAVATYPE_STRING)); in IsFastStringHandling()
191 (*variables)["type"] = PrimitiveTypeName(GetJavaType(descriptor)); in SetPrimitiveVariables()
193 (*variables)["boxed_type"] = BoxedPrimitiveTypeName(GetJavaType(descriptor)); in SetPrimitiveVariables()
198 if (IsReferenceType(GetJavaType(descriptor))) { in SetPrimitiveVariables()
247 if (IsVariableLenType(GetJavaType(descriptor_))) { in GenerateMembers()
327 return BoxedPrimitiveTypeName(GetJavaType(descriptor_)); in GetBoxedType()
408 if (IsReferenceType(GetJavaType(descriptor_))) { in GenerateMembers()
670 return BoxedPrimitiveTypeName(GetJavaType(descriptor_)); in GetBoxedType()
Djavamicro_helpers.h120 JavaType GetJavaType(FieldDescriptor::Type field_type);
122 inline JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType() function
123 return GetJavaType(field->type()); in GetJavaType()
Djavamicro_field.cc67 switch (GetJavaType(field)) { in MakeGenerator()
76 switch (GetJavaType(field)) { in MakeGenerator()
Djavamicro_helpers.cc200 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType() function
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_primitive_field.cc177 (*variables)["type"] = BoxedPrimitiveTypeName(GetJavaType(descriptor)); in SetPrimitiveVariables()
179 (*variables)["type"] = PrimitiveTypeName(GetJavaType(descriptor)); in SetPrimitiveVariables()
218 (*variables)["boxed_type"] = BoxedPrimitiveTypeName(GetJavaType(descriptor)); in SetPrimitiveVariables()
317 JavaType java_type = GetJavaType(descriptor_); in GenerateSerializationConditional()
381 JavaType java_type = GetJavaType(descriptor_); in GenerateEqualsCode()
458 JavaType java_type = GetJavaType(descriptor_); in GenerateHashCodeCode()
546 if (IsReferenceType(GetJavaType(descriptor_))) { in GenerateMembers()
599 switch (GetJavaType(descriptor_)) { in GenerateEqualsCode()
651 switch (GetJavaType(descriptor_)) { in GenerateHashCodeCode()
795 if (GetJavaType(descriptor_) == JAVATYPE_BYTES) { in GenerateMergingCode()
[all …]
Djavanano_field.cc97 JavaType java_type = GetJavaType(field); in MakeGenerator()
174 if (GetJavaType(descriptor) == JAVATYPE_BYTES) { in GenerateOneofFieldEquals()
195 if (GetJavaType(descriptor) == JAVATYPE_BYTES) { in GenerateOneofFieldHashCode()
Djavanano_helpers.h132 JavaType GetJavaType(FieldDescriptor::Type field_type);
134 inline JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType() function
135 return GetJavaType(field->type()); in GetJavaType()
Djavanano_extension.cc87 JavaType java_type = GetJavaType(descriptor->type()); in SetVariables()
Djavanano_map_field.cc47 JavaType java_type = GetJavaType(field); in TypeName()
Djavanano_helpers.cc297 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType() function
384 switch (GetJavaType(field)) { in EmptyArrayName()
/external/libchrome/mojo/public/tools/bindings/generators/
Dmojom_java_generator.py201 params.append('%s.MANAGER' % GetJavaType(context, kind))
203 params.append('%s.MANAGER' % GetJavaType(context, kind.kind))
261 unboxed_type = GetJavaType(context, kind, False, with_generics)
267 def GetJavaType(context, kind, boxed=False, with_generics=True): function
289 return '%s[]' % GetJavaType(context, kind.kind, boxed, with_generics)
299 return 'new %s()' % GetJavaType(context, field.kind)
301 GetJavaType(context, field.kind),
307 GetJavaType(context, constant.kind),
315 GetJavaType(context, kind.kind, boxed=False, with_generics=False), size)
322 return GetJavaType(context, named_value.parent_kind) + '.' + entity_name
[all …]