Home
last modified time | relevance | path

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

1234

/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/builders/
DNodeWithMembersBuildersTest.java42 … FieldDeclaration addField = classDeclaration.addField(int.class, "fieldName", Modifier.PRIVATE); in testAddField() local
44 assertEquals(addField, classDeclaration.getMember(0)); in testAddField()
45 assertEquals("fieldName", addField.getVariable(0).getNameAsString()); in testAddField()
117 … FieldDeclaration addField = classDeclaration.addField(int.class, "fieldName", Modifier.PRIVATE); in testGetFieldWithName() local
118 classDeclaration.addField(float.class, "secondField", Modifier.PRIVATE); in testGetFieldWithName()
120 assertEquals(addField, fieldByName); in testGetFieldWithName()
125 … FieldDeclaration firstField = classDeclaration.addField(int.class, "fieldName", Modifier.PRIVATE); in testGetFields()
126 …FieldDeclaration secondField = classDeclaration.addField(float.class, "secondField", Modifier.PRIV… in testGetFields()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java83 default FieldDeclaration addField(Class<?> typeClass, String name, Modifier... modifiers) { in addField() method
85 return addField(typeClass.getSimpleName(), name, modifiers); in addField()
96 default FieldDeclaration addField(String type, String name, Modifier... modifiers) { in addField() method
97 return addField(parseType(type), name, modifiers); in addField()
108 default FieldDeclaration addField(Type type, String name, Modifier... modifiers) { in addField() method
128 FieldDeclaration declaration = addField(type, name, modifiers); in addFieldWithInitializer()
141 return addField(typeClass, name, Modifier.PRIVATE); in addPrivateField()
153 return addField(type, name, Modifier.PRIVATE); in addPrivateField()
164 return addField(typeClass, name, Modifier.PUBLIC); in addPublicField()
176 return addField(type, name, Modifier.PUBLIC); in addPublicField()
[all …]
/external/javapoet/src/test/java/com/squareup/javapoet/
DTypeSpecTest.java91 .addField(listOfAny, "extendsObject") in interestingTypes()
92 .addField(listOfExtends, "extendsSerializable") in interestingTypes()
93 .addField(listOfSuper, "superString") in interestingTypes()
145 .addField(FieldSpec.builder(thingThangOfFooBar, "NAME") in anonymousInnerClass()
214 .addField(ClassName.get(String.class) in annotationsAndJavaLangTypes()
289 .addField(FieldSpec.builder(String.class, "thing", Modifier.PRIVATE, Modifier.FINAL) in annotatedField()
365 .addField(String.class, "handPosition", Modifier.PRIVATE, Modifier.FINAL) in enumWithSubclassing()
553 .addField(t, "label") in typeVariables()
554 .addField(p, "x") in typeVariables()
555 .addField(p, "y") in typeVariables()
[all …]
DJavaFileTest.java260 .addField(Date.class, "madeFreshDate") in singleImport()
277 .addField(Date.class, "madeFreshDate") in conflictingImports()
278 .addField(ClassName.get("java.sql", "Date"), "madeFreshDatabaseDate") in conflictingImports()
297 .addField(ParameterizedTypeName.get(ClassName.get(List.class), in annotatedTypeParam()
319 .addField(ClassName.get("java.lang", "Float"), "litres") in skipJavaLangImportsWithConflictingClassLast()
320 .addField(ClassName.get("com.squareup.soda", "Float"), "beverage") in skipJavaLangImportsWithConflictingClassLast()
339 .addField(ClassName.get("com.squareup.soda", "Float"), "beverage") in skipJavaLangImportsWithConflictingClassFirst()
340 .addField(ClassName.get("java.lang", "Float"), "litres") in skipJavaLangImportsWithConflictingClassFirst()
363 .addField(ClassName.get("com.squareup.tacos", "A", "Twin", "D"), "d") in conflictingParentName()
398 .addField(ClassName.get("com.squareup.tacos", "A", "Twin", "D"), "d") in conflictingChildName()
[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.java83 bizarroFields.addField(entry.getKey(), varintField); in getBizarroData()
86 bizarroFields.addField(entry.getKey(), fixed32Field); in getBizarroData()
170 .addField(2, in testMergeFrom()
173 .addField(3, in testMergeFrom()
182 .addField(1, in testMergeFrom()
185 .addField(3, in testMergeFrom()
224 .addField(123456, in testParseKnownAndUnknown()
290 .addField(singularField.getNumber(), in testParseUnknownEnumValue()
295 .addField(repeatedField.getNumber(), in testParseUnknownEnumValue()
344 .addField(1, in testLargeVarint()
[all …]
DDescriptorsTest.java456 .addField(FieldDescriptorProto.newBuilder() in testDescriptorValidatorException()
488 .addField(FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
497 .addField(FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
580 .addField(FieldDescriptorProto.newBuilder() in testUnknownFieldsDenied()
602 .addField(FieldDescriptorProto.newBuilder() in testUnknownFieldsAllowed()
625 .addField(FieldDescriptorProto.newBuilder() in testHiddenDependency()
661 .addField(FieldDescriptorProto.newBuilder() in testPublicDependency()
695 .addField(FieldDescriptorProto.newBuilder() in testComplexNamespacePublicDependency()
786 .addField(FieldDescriptorProto.newBuilder() in testPackedEnumField()
DDynamicMessageTest.java93 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build()) in testUnknownFields()
94 .addField(2, UnknownFieldSet.Field.newBuilder().addFixed32(1).build()) in testUnknownFields()
270 .addField(unknownFieldNum, in testToBuilder()
DTextFormatTest.java173 .addField(5, in makeUnknownFieldSet()
181 .addField(10, in makeUnknownFieldSet()
187 .addField(8, in makeUnknownFieldSet()
193 .addField(15, in makeUnknownFieldSet()
937 .addField(1, in testPrintToUnicodeString_unknown()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DTypeWriter.java89 public FieldWriter addField(Class<?> type, String name) { in addField() method in TypeWriter
90 return addField(ClassName.fromClass(type), name); in addField()
93 public FieldWriter addField(TypeElement type, String name) { in addField() method in TypeWriter
94 return addField(ClassName.fromTypeElement(type), name); in addField()
97 public FieldWriter addField(TypeName type, String name) { in addField() method in TypeWriter
/external/protobuf/objectivec/Tests/
DGPBUnknownFieldSetTest.m84 [bizarroFields addField:varintField];
90 [bizarroFields addField:fixed32Field];
115 [set1 addField:field];
118 [set1 addField:field];
123 [set2 addField:field];
126 [set2 addField:field];
131 [set3 addField:field];
134 [set3 addField:field];
139 [set4 addField:field];
142 [set4 addField:field];
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_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/javaparser/javaparser-testing/src/test/java/com/github/javaparser/remove/
DNodeRemovalTest.java52 FieldDeclaration addField = testClass.addField(String.class, "test"); in testRemoveFieldFromClass() local
54 boolean remove = addField.remove(); in testRemoveFieldFromClass()
/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/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/javapoet/src/main/java/com/squareup/javapoet/
DTypeSpec.java522 addField(fieldSpec); in addFields()
527 public Builder addField(FieldSpec fieldSpec) { in addField() method in TypeSpec.Builder
538 public Builder addField(TypeName type, String name, Modifier... modifiers) { in addField() method in TypeSpec.Builder
539 return addField(FieldSpec.builder(type, name, modifiers).build()); in addField()
542 public Builder addField(Type type, String name, Modifier... modifiers) { in addField() method in TypeSpec.Builder
543 return addField(TypeName.get(type), name, modifiers); in addField()
/external/javaparser/javaparser-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DInitializePropertyMetaModelsStatementsGenerator.java26 nodeMetaModelClass.addField("PropertyMetaModel", propertyMetaModelFieldName, PUBLIC); in generate()
50 nodeMetaModelClass.addField("PropertyMetaModel", propertyMetaModelFieldName, PUBLIC); in generateDerivedProperty()
/external/protobuf/objectivec/
DGPBUnknownFieldSet.h58 - (void)addField:(GPBUnknownField *)field;
DGPBUnknownFieldSet.m92 [result addField:copied];
284 - (void)addField:(GPBUnknownField *)field {
308 [self addField:existing];
331 [self addField:fieldCopy];
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DFactoryGenerator.java139 factoryWriter.addField(enclosingType, "module").addModifiers(PRIVATE, FINAL); in write()
162 factoryWriter.addField(membersInjectorType, "membersInjector").addModifiers(PRIVATE, FINAL); in write()
175 FieldWriter field = factoryWriter.addField(fieldType, bindingField.name()); in write()
DSubcomponentWriter.java175 componentWriter.addField(moduleTypeElement, preferredModuleName); in writeSubcomponentWithoutBuilder()
197 FieldWriter contributionField = componentWriter.addField(moduleType, preferredModuleName); in writeSubcomponentWithoutBuilder()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/writer/
DJavaWriterTest.java30 topClass.addField(ClassName.create("some.other.pkg", "Bottom"), "field"); in referencedAndDeclaredSimpleName()
/external/pdfium/testing/resources/javascript/
Ddocument_methods_expected.txt5 Alert: PASS: typeof this.addField = function
6 Alert: PASS: this.addField() = undefined
7 Alert: PASS: this.addField(1, 2, "clams", [1, 2, 3]) = undefined
/external/tensorflow/tensorflow/java/src/gen/java/org/tensorflow/processor/
DOperatorProcessor.java316 builder.addField( in buildGroupClass()
395 opsBuilder.addField( in buildTopClass()
407 opsBuilder.addField( in buildTopClass()

1234