Home
last modified time | relevance | path

Searched refs:hasField (Results 1 – 25 of 70) sorted by relevance

123

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DFieldPresenceTest.java181 assertFalse(message.hasField(optionalInt32Field)); in testFieldPresenceByReflection()
182 assertFalse(message.hasField(optionalStringField)); in testFieldPresenceByReflection()
183 assertFalse(message.hasField(optionalBytesField)); in testFieldPresenceByReflection()
184 assertFalse(message.hasField(optionalNestedEnumField)); in testFieldPresenceByReflection()
195 assertFalse(message.hasField(optionalInt32Field)); in testFieldPresenceByReflection()
196 assertFalse(message.hasField(optionalStringField)); in testFieldPresenceByReflection()
197 assertFalse(message.hasField(optionalBytesField)); in testFieldPresenceByReflection()
198 assertFalse(message.hasField(optionalNestedEnumField)); in testFieldPresenceByReflection()
209 assertTrue(message.hasField(optionalInt32Field)); in testFieldPresenceByReflection()
210 assertTrue(message.hasField(optionalStringField)); in testFieldPresenceByReflection()
[all …]
DTestUtil.java3040 Assert.assertTrue(message.hasField(f("optional_int32"))); in assertAllFieldsSetViaReflection()
3041 Assert.assertTrue(message.hasField(f("optional_int64"))); in assertAllFieldsSetViaReflection()
3042 Assert.assertTrue(message.hasField(f("optional_uint32"))); in assertAllFieldsSetViaReflection()
3043 Assert.assertTrue(message.hasField(f("optional_uint64"))); in assertAllFieldsSetViaReflection()
3044 Assert.assertTrue(message.hasField(f("optional_sint32"))); in assertAllFieldsSetViaReflection()
3045 Assert.assertTrue(message.hasField(f("optional_sint64"))); in assertAllFieldsSetViaReflection()
3046 Assert.assertTrue(message.hasField(f("optional_fixed32"))); in assertAllFieldsSetViaReflection()
3047 Assert.assertTrue(message.hasField(f("optional_fixed64"))); in assertAllFieldsSetViaReflection()
3048 Assert.assertTrue(message.hasField(f("optional_sfixed32"))); in assertAllFieldsSetViaReflection()
3049 Assert.assertTrue(message.hasField(f("optional_sfixed64"))); in assertAllFieldsSetViaReflection()
[all …]
DDynamicMessageTest.java250 assertTrue(copy.hasField(bytesField)); in testDynamicMessageCopy()
251 assertFalse(copy.hasField(uint32Field)); in testDynamicMessageCopy()
253 assertFalse(copy2.hasField(bytesField)); in testDynamicMessageCopy()
254 assertTrue(copy2.hasField(uint32Field)); in testDynamicMessageCopy()
295 assertTrue(mergedBuilder.hasField(mergedField)); in testDynamicOneofMessage()
297 assertTrue(mergedBuilder.hasField(field)); in testDynamicOneofMessage()
298 assertFalse(mergedBuilder.hasField(mergedField)); in testDynamicOneofMessage()
DAbstractMessageTest.java84 public boolean hasField(Descriptors.FieldDescriptor field) { in hasField() method in AbstractMessageTest.AbstractMessageWrapper
85 return wrappedMessage.hasField(field); in hasField()
166 public boolean hasField(Descriptors.FieldDescriptor field) { in hasField() method in AbstractMessageTest.AbstractMessageWrapper.Builder
167 return wrappedBuilder.hasField(field); in hasField()
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java2248 Assert.assertTrue(message.hasField(f("optional_int32" ))); in assertAllFieldsSetViaReflection()
2249 Assert.assertTrue(message.hasField(f("optional_int64" ))); in assertAllFieldsSetViaReflection()
2250 Assert.assertTrue(message.hasField(f("optional_uint32" ))); in assertAllFieldsSetViaReflection()
2251 Assert.assertTrue(message.hasField(f("optional_uint64" ))); in assertAllFieldsSetViaReflection()
2252 Assert.assertTrue(message.hasField(f("optional_sint32" ))); in assertAllFieldsSetViaReflection()
2253 Assert.assertTrue(message.hasField(f("optional_sint64" ))); in assertAllFieldsSetViaReflection()
2254 Assert.assertTrue(message.hasField(f("optional_fixed32" ))); in assertAllFieldsSetViaReflection()
2255 Assert.assertTrue(message.hasField(f("optional_fixed64" ))); in assertAllFieldsSetViaReflection()
2256 Assert.assertTrue(message.hasField(f("optional_sfixed32"))); in assertAllFieldsSetViaReflection()
2257 Assert.assertTrue(message.hasField(f("optional_sfixed64"))); in assertAllFieldsSetViaReflection()
[all …]
DAbstractMessageTest.java79 public boolean hasField(Descriptors.FieldDescriptor field) { in hasField() method in AbstractMessageTest.AbstractMessageWrapper
80 return wrappedMessage.hasField(field); in hasField()
134 public boolean hasField(Descriptors.FieldDescriptor field) { in hasField() method in AbstractMessageTest.AbstractMessageWrapper.Builder
135 return wrappedBuilder.hasField(field); in hasField()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java245 if (!source.hasField(field) && !destination.hasField(field)) { in merge()
267 if (!source.hasField(field)) { in merge()
273 if (source.hasField(field)) { in merge()
283 if (source.hasField(field) || !options.replacePrimitiveFields()) { in merge()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/
DPOJOPropertiesCollectorTest.java252 assertTrue(prop.hasField()); in testSimple()
266 assertTrue(prop.hasField()); in testSimpleFieldVisibility()
279 assertFalse(prop.hasField()); in testSimpleGetterVisibility()
305 assertTrue(prop.hasField()); in testPartialIgnore()
318 assertTrue(prop.hasField()); in testSimpleRenamed()
331 assertFalse(prop.hasField()); in testSimpleRenamed2()
344 assertTrue(prop.hasField()); in testMergeWithRename()
357 assertFalse(prop.hasField()); in testSimpleIgnoreAndRename()
DTestBuilderMethods.java37 assertTrue(prop.hasField()); in testSimple()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMessageReflection.java128 if (!message.hasField(field)) { in isInitialized()
174 if (field.isRequired() && !message.hasField(field)) { in findMissingFields()
192 if (message.hasField(field)) { in findMissingFields()
243 boolean hasField(Descriptors.FieldDescriptor field); in hasField() method
368 public boolean hasField(Descriptors.FieldDescriptor field) { in hasField() method in MessageReflection.BuilderAdapter
369 return builder.hasField(field); in hasField()
570 public boolean hasField(Descriptors.FieldDescriptor field) { in hasField() method in MessageReflection.ExtensionAdapter
571 return extensions.hasField(field); in hasField()
966 boolean hasOriginalValue = target.hasField(field); in mergeMessageSetExtensionFromBytes()
DMapEntry.java191 if (hasField(field)) { in getAllFields()
209 public boolean hasField(FieldDescriptor field) { in hasField() method in MapEntry
400 if (hasField(field)) { in getAllFields()
408 public boolean hasField(FieldDescriptor field) { in hasField() method in MapEntry.Builder
DDynamicMessage.java187 public boolean hasField(FieldDescriptor field) { in hasField() method in DynamicMessage
189 return fields.hasField(field); in hasField()
229 if (!fields.hasField(field)) { in isInitialized()
501 public boolean hasField(FieldDescriptor field) {
503 return fields.hasField(field);
DGeneratedMessage.java151 if (!hasField(field)) { in getAllFieldsMutable()
170 if (!hasField(field)) { in isInitialized()
185 if (hasField(field) && !((Message) getField(field)).isInitialized()) { in isInitialized()
227 public boolean hasField(final FieldDescriptor field) { in hasField() method in GeneratedMessage
506 if (!hasField(field)) {
543 public boolean hasField(final FieldDescriptor field) {
626 if (!hasField(field)) {
641 if (hasField(field) &&
862 return extensions.hasField(extension.getDescriptor());
1085 public boolean hasField(final FieldDescriptor field) {
[all …]
DMessageOrBuilder.java102 boolean hasField(Descriptors.FieldDescriptor field); in hasField() method
DGeneratedMessageV3.java184 if (!hasField(field)) { in getAllFieldsMutable()
203 if (!hasField(field)) { in isInitialized()
218 if (hasField(field) && !((Message) getField(field)).isInitialized()) { in isInitialized()
260 public boolean hasField(final FieldDescriptor field) { in hasField() method in GeneratedMessageV3
655 if (!hasField(field)) {
692 public boolean hasField(final FieldDescriptor field) {
786 if (!hasField(field)) {
801 if (hasField(field) &&
1010 return extensions.hasField(extension.getDescriptor());
1246 public boolean hasField(final FieldDescriptor field) {
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionClassAdapter.java93 if (ancestor.getTypeDeclaration().hasField(name)) { in getField()
101 public boolean hasField(String name) { in hasField() method in ReflectionClassAdapter
111 return superclass.getTypeDeclaration().hasField(name); in hasField()
DReflectionEnumDeclaration.java116 public boolean hasField(String name) { in hasField() method in ReflectionEnumDeclaration
117 return reflectionClassAdapter.hasField(name); in hasField()
DReflectionInterfaceDeclaration.java251 public boolean hasField(String name) { in hasField() method in ReflectionInterfaceDeclaration
252 return reflectionClassAdapter.hasField(name); in hasField()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionClassAdapter.java93 if (ancestor.getTypeDeclaration().hasField(name)) { in getField()
101 public boolean hasField(String name) { in hasField() method in ReflectionClassAdapter
108 if (ancestor.getTypeDeclaration().hasField(name)) { in hasField()
DReflectionEnumDeclaration.java124 public boolean hasField(String name) { in hasField() method in ReflectionEnumDeclaration
125 return reflectionClassAdapter.hasField(name); in hasField()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_EnumDeclarationContext.txt7 … this.getDeclaration().hasField(name) ==> com.github.javaparser.symbolsolver.model.declarations.Re…
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_SwitchEntryContext.txt9 …n.getTypeDeclaration().hasField(name) ==> com.github.javaparser.symbolsolver.model.declarations.Re…
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionClassAdapter.txt38 …r.getTypeDeclaration().hasField(name) ==> com.github.javaparser.symbolsolver.model.declarations.Re…
49 …s.getTypeDeclaration().hasField(name) ==> com.github.javaparser.symbolsolver.model.declarations.Re…
/external/protobuf/objectivec/
DGPBUnknownFieldSet.h52 - (BOOL)hasField:(int32_t)number;
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessage.java243 if (!hasField(args[0])) { in methodMissing()
263 if (!hasField(field)) { in methodMissing()
284 } else if (this.builder.hasField(fieldDescriptor)) { in dup()
443 } else if (this.builder.hasField(fdef)) { in deepCopy()
480 private boolean hasField(IRubyObject fieldName) { in hasField() method in RubyMessage
663 this.builder.hasField(fieldDescriptor) || fields.containsKey(fieldDescriptor)) { in getField()
668 if (this.builder.hasField(fieldDescriptor)) { in getField()

123