Home
last modified time | relevance | path

Searched refs:addField (Results 1 – 25 of 137) sorted by relevance

123456

/external/protobuf/objectivec/Tests/
DGPBUnknownFieldSetTest.m66 XCTAssertThrowsSpecificNamed([set addField:field], NSException, NSInvalidArgumentException);
83 [set1 addField:field1];
87 [set2 addField:field2];
95 [set1 addField:field1];
99 [set2 addField:field2];
107 [set1 addField:field1];
111 [set2 addField:field2];
119 [set1 addField:field1];
123 [set2 addField:field2];
132 [group1 addField:fieldGroup1];
[all …]
/external/javapoet/src/test/java/com/squareup/javapoet/
DJavaFileTest.java274 .addField(Date.class, "madeFreshDate") in singleImport()
291 .addField(Date.class, "madeFreshDate") in conflictingImports()
292 .addField(ClassName.get("java.sql", "Date"), "madeFreshDatabaseDate") in conflictingImports()
311 .addField(ParameterizedTypeName.get(ClassName.get(List.class), in annotatedTypeParam()
333 .addField(ClassName.get("java.lang", "Float"), "litres") in skipJavaLangImportsWithConflictingClassLast()
334 .addField(ClassName.get("com.squareup.soda", "Float"), "beverage") in skipJavaLangImportsWithConflictingClassLast()
353 .addField(ClassName.get("com.squareup.soda", "Float"), "beverage") in skipJavaLangImportsWithConflictingClassFirst()
354 .addField(ClassName.get("java.lang", "Float"), "litres") in skipJavaLangImportsWithConflictingClassFirst()
377 .addField(ClassName.get("com.squareup.tacos", "A", "Twin", "D"), "d") in conflictingParentName()
412 .addField(ClassName.get("com.squareup.tacos", "A", "Twin", "D"), "d") in conflictingChildName()
[all …]
DTypeSpecTest.java92 .addField(listOfAny, "extendsObject") in interestingTypes()
93 .addField(listOfExtends, "extendsSerializable") in interestingTypes()
94 .addField(listOfSuper, "superString") in interestingTypes()
146 .addField(FieldSpec.builder(thingThangOfFooBar, "NAME") in anonymousInnerClass()
215 .addField(ClassName.get(String.class) in annotationsAndJavaLangTypes()
290 .addField(FieldSpec.builder(String.class, "thing", Modifier.PRIVATE, Modifier.FINAL) in annotatedField()
366 .addField(String.class, "handPosition", Modifier.PRIVATE, Modifier.FINAL) in enumWithSubclassing()
554 .addField(t, "label") in typeVariables()
555 .addField(p, "x") in typeVariables()
556 .addField(p, "y") in typeVariables()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java83 …default FieldDeclaration addField(Class<?> typeClass, String name, Modifier.Keyword... modifiers) { in addField() method
85 return addField(typeClass.getSimpleName(), name, modifiers); in addField()
96 default FieldDeclaration addField(String type, String name, Modifier.Keyword... modifiers) { in addField() method
97 return addField(parseType(type), name, modifiers); in addField()
108 default FieldDeclaration addField(Type type, String name, Modifier.Keyword... modifiers) { in addField() method
154 FieldDeclaration declaration = addField(type, name, modifiers); in addFieldWithInitializer()
167 return addField(typeClass, name, PRIVATE); in addPrivateField()
179 return addField(type, name, PRIVATE); in addPrivateField()
190 return addField(type, name, PRIVATE); in addPrivateField()
201 return addField(typeClass, name, PUBLIC); in addPublicField()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java48 default FieldDeclaration addField(Class<?> typeClass, String name, Modifier... modifiers) { in addField() method
50 return addField(typeClass.getSimpleName(), name, modifiers); in addField()
61 default FieldDeclaration addField(String type, String name, Modifier... modifiers) { in addField() method
62 return addField(new ClassOrInterfaceType(type), name, modifiers); in addField()
73 default FieldDeclaration addField(Type<?> type, String name, Modifier... modifiers) { in addField() method
94 return addField(typeClass, name, Modifier.PRIVATE); in addPrivateField()
106 return addField(type, name, Modifier.PRIVATE); in addPrivateField()
117 return addField(typeClass, name, Modifier.PUBLIC); in addPublicField()
129 return addField(type, name, Modifier.PUBLIC); in addPublicField()
140 return addField(typeClass, name, Modifier.PROTECTED); in addProtectedField()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DUnknownFieldSetTest.java78 bizarroFields.addField(entry.getKey(), varintField); in getBizarroData()
81 bizarroFields.addField(entry.getKey(), fixed32Field); in getBizarroData()
158 .addField(2, UnknownFieldSet.Field.newBuilder().addVarint(2).build()) in testMergeFrom()
159 .addField(3, UnknownFieldSet.Field.newBuilder().addVarint(4).build()) in testMergeFrom()
166 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build()) in testMergeFrom()
167 .addField(3, UnknownFieldSet.Field.newBuilder().addVarint(3).build()) in testMergeFrom()
198 .addField(123456, UnknownFieldSet.Field.newBuilder().addVarint(654321).build()) in testParseKnownAndUnknown()
259 .addField( in testParseUnknownEnumValue()
265 .addField( in testParseUnknownEnumValue()
311 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(0x7FFFFFFFFFFFFFFFL).build()) in testLargeVarint()
[all …]
DProto2UnknownEnumValueTest.java50 builder.addField( in buildPayloadWithUnknownEnumValues()
56 builder.addField( in buildPayloadWithUnknownEnumValues()
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DUnknownFieldSetTest.java80 bizarroFields.addField(entry.getKey(), varintField); in getBizarroData()
83 bizarroFields.addField(entry.getKey(), fixed32Field); in getBizarroData()
167 .addField(2, in testMergeFrom()
170 .addField(3, in testMergeFrom()
179 .addField(1, in testMergeFrom()
182 .addField(3, in testMergeFrom()
214 .addField(123456, in testParseKnownAndUnknown()
280 .addField(singularField.getNumber(), in testParseUnknownEnumValue()
285 .addField(repeatedField.getNumber(), in testParseUnknownEnumValue()
334 .addField(1, in testLargeVarint()
[all …]
DTextFormatTest.java152 .addField(5, in makeUnknownFieldSet()
160 .addField(10, in makeUnknownFieldSet()
166 .addField(8, in makeUnknownFieldSet()
172 .addField(15, in makeUnknownFieldSet()
531 .addField(1, in testPrintToUnicodeString_unknown()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/builders/
DNodeWithMembersBuildersTest.java41 FieldDeclaration addField = classDeclaration.addField(int.class, "fieldName", PRIVATE); in testAddField() local
43 assertEquals(addField, classDeclaration.getMember(0)); in testAddField()
44 assertEquals("fieldName", addField.getVariable(0).getNameAsString()); in testAddField()
116 FieldDeclaration addField = classDeclaration.addField(int.class, "fieldName", PRIVATE); in testGetFieldWithName() local
117 classDeclaration.addField(float.class, "secondField", PRIVATE); in testGetFieldWithName()
119 assertEquals(addField, fieldByName); in testGetFieldWithName()
124 FieldDeclaration firstField = classDeclaration.addField(int.class, "fieldName", PRIVATE); in testGetFields()
125 … FieldDeclaration secondField = classDeclaration.addField(float.class, "secondField", PRIVATE); in testGetFields()
/external/javassist/src/test/javassist/
DSetterTest.java31 clazz.addField(field, "true"); in testFieldGetter()
48 clazz.addField(field, "true"); in testFieldGetterSetter()
69 clazz.addField(field, "true"); in testStaticFieldGetter()
87 clazz.addField(field, "true"); in testStaticFieldGetterSetter()
DJvstTest3.java166 cc.addField(new CtField(CtClass.intType, "j", cc)); in testCheckModifyAndPruned()
527 cc2.addField(new CtField(f, cc2)); in testFieldCopy()
725 cc.addField(new CtField(CtClass.intType, "k", cc)); in testFrozen2()
766 cc.addField(fj, CtField.Initializer.constant(2L)); in testStaticFinalField()
769 cc.addField(fi, CtField.Initializer.constant(3)); in testStaticFinalField()
772 cc.addField(fs, CtField.Initializer.constant(4)); in testStaticFinalField()
775 cc.addField(fc, CtField.Initializer.constant('5')); in testStaticFinalField()
778 cc.addField(fby, CtField.Initializer.constant(6)); in testStaticFinalField()
781 cc.addField(fb, CtField.Initializer.constant(true)); in testStaticFinalField()
784 cc.addField(ff, CtField.Initializer.constant(7.0F)); in testStaticFinalField()
[all …]
DJvstTest2.java465 cc.addField(new CtField(CtClass.longType, "f", cc)); in testAddMethod()
855 cc.addField(new CtField(cc2, "inner", cc)); in testSuperInterface()
866 cc.addField(new CtField(CtClass.intType, "f", cc)); in testPrune()
1036 cc.addField(CtField.make("public static int k;", cc)); in testSwitch()
1418 cc.addField(f); in testStaticArrays()
1440 cc.addField(f, "5"); in testStaticFinal()
1445 cc.addField(f, "6"); in testStaticFinal()
1450 cc.addField(f, "7"); in testStaticFinal()
1455 cc.addField(f, "8.0"); in testStaticFinal()
1460 cc.addField(f, "9"); in testStaticFinal()
[all …]
/external/protobuf/php/src/Google/Protobuf/Internal/
DMessageBuilderContext.php85 $this->descriptor->addField($this->getFieldDescriptor(
96 $this->descriptor->addField($this->getFieldDescriptor(
107 $this->descriptor->addField($this->getFieldDescriptor(
DOneofDescriptor.php57 public function addField(FieldDescriptor $field) function in Google\\Protobuf\\Internal\\OneofDescriptor
73 $oneof->addField($field);
DDescriptor.php76 public function addField($field) function in Google\\Protobuf\\Internal\\Descriptor
197 $desc->addField(FieldDescriptor::buildFromProto($field_proto));
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_nodeTypes_NodeWithMembers.txt2 …Line 50) addField(typeClass.getSimpleName(), name, modifiers) ==> com.github.javaparser.ast.nodeTy…
4 …Line 62) addField(new ClassOrInterfaceType(type), name, modifiers) ==> com.github.javaparser.ast.n…
17 …Line 94) addField(typeClass, name, Modifier.PRIVATE) ==> com.github.javaparser.ast.nodeTypes.NodeW…
18 …Line 106) addField(type, name, Modifier.PRIVATE) ==> com.github.javaparser.ast.nodeTypes.NodeWithM…
19 …Line 117) addField(typeClass, name, Modifier.PUBLIC) ==> com.github.javaparser.ast.nodeTypes.NodeW…
20 …Line 129) addField(type, name, Modifier.PUBLIC) ==> com.github.javaparser.ast.nodeTypes.NodeWithMe…
21 …Line 140) addField(typeClass, name, Modifier.PROTECTED) ==> com.github.javaparser.ast.nodeTypes.No…
22 …Line 152) addField(type, name, Modifier.PROTECTED) ==> com.github.javaparser.ast.nodeTypes.NodeWit…
/external/autotest/frontend/client/src/autotest/tko/
DParameterizedFieldListPresenter.java80 addField(field); in onClick()
89 private void addField(final ParameterizedField field) { in addField() method in ParameterizedFieldListPresenter
109 addField(field); in addFieldIfNotPresent()
145 addField(createField(typeName, value)); in handleHistoryArguments()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/remove/
DNodeRemovalTest.java57 FieldDeclaration addField = testClass.addField(String.class, "test"); in testRemoveFieldFromClass() local
59 boolean remove = addField.remove(); in testRemoveFieldFromClass()
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DCrossProfileCallbackCodeGenerator.java127 classBuilder.addField( in generateMultiMergerResultClass()
173 classBuilder.addField( in generateMultiMergerInputClass()
178 classBuilder.addField( in generateMultiMergerInputClass()
260 classBuilder.addField( in generateReceiverClass()
265 classBuilder.addField( in generateReceiverClass()
366 classBuilder.addField( in generateSenderClass()
371 classBuilder.addField( in generateSenderClass()
376 classBuilder.addField( in generateSenderClass()
DFakeCrossProfileTypeGenerator.java92 classBuilder.addField( in generateFakeCrossProfileType()
216 classBuilder.addField( in addConstructor()
221 classBuilder.addField( in addConstructor()
320 classBuilder.addField( in generateFakeCrossProfileTypeBuilder()
361 classBuilder.addField( in setupNonStaticBuilder()
379 classBuilder.addField( in setupNonStaticBuilder()
/external/dagger2/java/dagger/internal/codegen/writing/
DComponentRequirementExpressions.java128 private final Supplier<MemberSelect> field = memoize(this::addField);
152 private MemberSelect addField() { in addField() method in ComponentRequirementExpressions.AbstractField
154 componentImplementation.addField(COMPONENT_REQUIREMENT_FIELD, field); in addField()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyDescriptor.java120 public IRubyObject addField(ThreadContext context, IRubyObject obj) { in addField() method in RubyDescriptor
123 this.builder.addField(fieldDef.build()); in addField()
184 addField(context, fieldDescriptor); in addOneof()
DRubyMessageBuilderContext.java172 mapentryDesc.addField(context, keyField); in map()
181 mapentryDesc.addField(context, valueField); in map()
207 descriptor.addField(context, in msgdefAddField()
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DInitializePropertyMetaModelsStatementsGenerator.java26 nodeMetaModelClass.addField("PropertyMetaModel", propertyMetaModelFieldName, PUBLIC); in generate()
49 nodeMetaModelClass.addField("PropertyMetaModel", propertyMetaModelFieldName, PUBLIC); in generateDerivedProperty()

123456