Home
last modified time | relevance | path

Searched refs:FieldSpec (Results 1 – 25 of 50) sorted by relevance

12

/external/javapoet/src/test/java/com/squareup/javapoet/
DFieldSpecTest.java27 FieldSpec a = FieldSpec.builder(int.class, "foo").build(); in equalsAndHashCode()
28 FieldSpec b = FieldSpec.builder(int.class, "foo").build(); in equalsAndHashCode()
32 a = FieldSpec.builder(int.class, "FOO", Modifier.PUBLIC, Modifier.STATIC).build(); in equalsAndHashCode()
33 b = FieldSpec.builder(int.class, "FOO", Modifier.PUBLIC, Modifier.STATIC).build(); in equalsAndHashCode()
41 FieldSpec.builder(int.class, "foo").addAnnotations(null); in nullAnnotationsAddition()
51 FieldSpec.Builder builder = FieldSpec.builder(int.class, "foo") in modifyAnnotations()
60 FieldSpec.Builder builder = FieldSpec.builder(int.class, "foo") in modifyModifiers()
DTypeSpecTest.java146 .addField(FieldSpec.builder(thingThangOfFooBar, "NAME") in anonymousInnerClass()
290 .addField(FieldSpec.builder(String.class, "thing", Modifier.PRIVATE, Modifier.FINAL) in annotatedField()
817 FieldSpec field = FieldSpec.builder(int.class, "FOO") in annotationWithFields()
908 FieldSpec internalTop = FieldSpec.builder( in referencedAndDeclaredSimpleNamesConflict()
910 FieldSpec internalBottom = FieldSpec.builder( in referencedAndDeclaredSimpleNamesConflict()
912 FieldSpec externalTop = FieldSpec.builder( in referencedAndDeclaredSimpleNamesConflict()
914 FieldSpec externalBottom = FieldSpec.builder( in referencedAndDeclaredSimpleNamesConflict()
971 FieldSpec internalOther = FieldSpec.builder( in simpleNamesConflictInThisAndOtherPackage()
973 FieldSpec externalOther = FieldSpec.builder( in simpleNamesConflictInThisAndOtherPackage()
997 .addField(FieldSpec.builder(inPackage, "inPackage").build()) in simpleNameConflictsWithTypeVariable()
[all …]
/external/dagger2/java/dagger/internal/codegen/writing/
DComponentRequirementExpressions.java29 import com.squareup.javapoet.FieldSpec;
153 FieldSpec field = createField(); in addField()
159 private FieldSpec createField() { in createField()
160 return FieldSpec.builder(TypeName.get(componentRequirement.type()), fieldName, PRIVATE, FINAL) in createField()
165 abstract CodeBlock fieldInitialization(FieldSpec componentField); in fieldInitialization()
183 CodeBlock fieldInitialization(FieldSpec componentField) { in fieldInitialization()
227 CodeBlock fieldInitialization(FieldSpec componentField) { in fieldInitialization()
DProducerFactoryGenerator.java56 import com.squareup.javapoet.FieldSpec;
133 ImmutableMap.Builder<DependencyRequest, FieldSpec> fieldsBuilder = ImmutableMap.builder(); in write()
137 Optional<FieldSpec> moduleField = in write()
165 FieldSpec field = in write()
172 ImmutableMap<DependencyRequest, FieldSpec> fields = fieldsBuilder.build(); in write()
255 private static FieldSpec addFieldAndConstructorParameter( in addFieldAndConstructorParameter()
260 FieldSpec field = FieldSpec.builder(variableType, variableName, PRIVATE, FINAL).build(); in addFieldAndConstructorParameter()
266 private static CodeBlock fieldAssignment(FieldSpec field, ParameterizedTypeName type) { in fieldAssignment()
278 MethodSpec.Builder constructorBuilder, FieldSpec field, ParameterizedTypeName type) { in assignField()
315 protected final ImmutableMap<DependencyRequest, FieldSpec> fields;
[all …]
DComponentCreatorImplementation.java22 import com.squareup.javapoet.FieldSpec;
32 TypeSpec spec, ClassName name, ImmutableMap<ComponentRequirement, FieldSpec> fields) { in create()
43 abstract ImmutableMap<ComponentRequirement, FieldSpec> fields(); in fields()
DProducerEntryPointView.java23 import com.squareup.javapoet.FieldSpec;
78 private FieldSpec createField( in createField()
86 FieldSpec field = in createField()
87 FieldSpec.builder( in createField()
DFrameworkFieldInitializer.java28 import com.squareup.javapoet.FieldSpec;
79 private FieldSpec fieldSpec;
139 private FieldSpec getOrCreateField() { in getOrCreateField()
164 FieldSpec.Builder contributionField = in getOrCreateField()
165 FieldSpec.builder( in getOrCreateField()
DMethodBindingExpression.java30 import com.squareup.javapoet.FieldSpec;
203 private final Supplier<FieldSpec> field = Suppliers.memoize(this::createField);
226 FieldSpec createField() { in createField()
233 FieldSpec.Builder builder = FieldSpec.builder(fieldType(), name, PRIVATE, VOLATILE); in createField()
238 FieldSpec field = builder.build(); in createField()
287 FieldSpec.builder(TypeName.OBJECT, name, PRIVATE, VOLATILE) in createField()
DHjarSourceFileGenerator.java25 import com.squareup.javapoet.FieldSpec;
116 private FieldSpec skeletonField(FieldSpec completeField) { in skeletonField()
117 return FieldSpec.builder( in skeletonField()
DOptionalFactories.java49 import com.squareup.javapoet.FieldSpec;
107 private final Map<OptionalKind, FieldSpec> absentOptionalProviderFields = new TreeMap<>();
153 FieldSpec field = absentOptionalProviderField(kind); in absentOptionalProviderMethod()
165 private FieldSpec absentOptionalProviderField(OptionalKind optionalKind) {
166 return FieldSpec.builder(
310 FieldSpec delegateField =
311 FieldSpec.builder(spec.delegateType(), "delegate", PRIVATE, FINAL).build();
354 PresentFactorySpec spec, FieldSpec delegateField) {
DFactoryGenerator.java51 import com.squareup.javapoet.FieldSpec;
150 FieldSpec.builder(param.type, param.name, PRIVATE, FINAL).build()); in addConstructorAndFields()
171 private ImmutableMap<DependencyRequest, FieldSpec> frameworkFields(ProvisionBinding binding) { in frameworkFields()
179 FieldSpec.builder( in frameworkFields()
196 FieldSpec.Builder instanceFieldBuilder = in addCreateMethod()
197 FieldSpec.builder(nameGeneratedType(binding), "INSTANCE", PRIVATE, STATIC, FINAL) in addCreateMethod()
244 ImmutableMap<DependencyRequest, FieldSpec> frameworkFields = frameworkFields(binding); in getMethod()
291 private static ParameterSpec toParameter(FieldSpec field) { in toParameter()
DMembersInjectorGenerator.java46 import com.squareup.javapoet.FieldSpec;
141 ImmutableMap.Builder<DependencyRequest, FieldSpec> dependencyFieldsBuilder = in write()
172 FieldSpec.Builder fieldBuilder = FieldSpec.builder(fieldType, fieldName, PRIVATE, FINAL); in write()
186 FieldSpec field = fieldBuilder.build(); in write()
200 ImmutableMap<DependencyRequest, FieldSpec> dependencyFields = dependencyFieldsBuilder.build(); in write()
DDependencyMethodProducerCreationExpression.java30 import com.squareup.javapoet.FieldSpec;
65 FieldSpec dependencyField = in creationExpression()
66 FieldSpec.builder( in creationExpression()
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DGenerators.java27 import com.squareup.javapoet.FieldSpec;
269 private static FieldSpec componentManagerField(AndroidEntryPointMetadata metadata) { in componentManagerField()
271 FieldSpec.Builder builder = FieldSpec.builder(managerParam.type, managerParam.name) in componentManagerField()
283 private static FieldSpec componentManagerLockField() { in componentManagerLockField()
284 return FieldSpec.builder(TypeName.get(Object.class), "componentManagerLock") in componentManagerLockField()
454 private static FieldSpec injectedField(AndroidEntryPointMetadata metadata) { in injectedField()
455 FieldSpec.Builder builder = FieldSpec.builder(TypeName.BOOLEAN, "injected") in injectedField()
472 private static FieldSpec injectedLockField() { in injectedLockField()
473 return FieldSpec.builder(TypeName.OBJECT, "injectedLock") in injectedLockField()
DApplicationGenerator.java22 import com.squareup.javapoet.FieldSpec;
80 private FieldSpec componentManagerField() { in componentManagerField()
82 return FieldSpec.builder(managerParam.type, managerParam.name) in componentManagerField()
DFragmentGenerator.java20 import com.squareup.javapoet.FieldSpec;
34 private static final FieldSpec COMPONENT_CONTEXT_FIELD =
35 FieldSpec.builder(AndroidClassNames.CONTEXT_WRAPPER, "componentContext")
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DCrossProfileCallbackCodeGenerator.java38 import com.squareup.javapoet.FieldSpec;
128 FieldSpec.builder( in generateMultiMergerResultClass()
174 FieldSpec.builder(PROFILE_CLASSNAME, "profileId") in generateMultiMergerInputClass()
179 FieldSpec.builder( in generateMultiMergerInputClass()
261 FieldSpec.builder(CROSS_PROFILE_CALLBACK_CLASSNAME, "callback") in generateReceiverClass()
266 FieldSpec.builder(BUNDLER_CLASSNAME, "bundler") in generateReceiverClass()
367 FieldSpec.builder(ClassName.get(callbackInterface.interfaceElement()), "callback") in generateSenderClass()
372 FieldSpec.builder(EXCEPTION_CALLBACK_CLASSNAME, "exceptionCallback") in generateSenderClass()
377 FieldSpec.builder(BUNDLER_CLASSNAME, "bundler") in generateSenderClass()
DFakeCrossProfileTypeGenerator.java35 import com.squareup.javapoet.FieldSpec;
93 FieldSpec.builder(fakeProfileConnectorClassName, "connector") in generateFakeCrossProfileType()
217 FieldSpec.builder(crossProfileType.className(), "personal") in addConstructor()
222 FieldSpec.builder(crossProfileType.className(), "work") in addConstructor()
321 FieldSpec.builder(fakeProfileConnectorClassName, "connector") in generateFakeCrossProfileTypeBuilder()
362 FieldSpec.builder(crossProfileType.className(), "personal") in setupNonStaticBuilder()
380 FieldSpec.builder(crossProfileType.className(), "work") in setupNonStaticBuilder()
DServiceGenerator.java30 import com.squareup.javapoet.FieldSpec;
107 FieldSpec.builder( in addBinder()
119 FieldSpec.builder(CROSSPROFILESERVICE_STUB_CLASSNAME, "binder", Modifier.PRIVATE) in addBinder()
/external/dagger2/java/dagger/hilt/android/processor/internal/customtestapplication/
DCustomTestApplicationGenerator.java19 import com.squareup.javapoet.FieldSpec;
73 private static FieldSpec getComponentManagerField() { in getComponentManagerField()
74 return FieldSpec.builder(COMPONENT_MANAGER.type, COMPONENT_MANAGER.name, Modifier.PRIVATE) in getComponentManagerField()
/external/auto/value/src/main/java/com/google/auto/value/extension/memoized/processor/
DMemoizeExtension.java60 import com.squareup.javapoet.FieldSpec;
399 private final FieldSpec cacheField;
400 private final ImmutableList.Builder<FieldSpec> fields = ImmutableList.builder();
438 Iterable<FieldSpec> fields() { in fields()
504 private FieldSpec buildCacheField(TypeName type, String name) { in buildCacheField()
505 FieldSpec.Builder builder = FieldSpec.builder(type, name, PRIVATE, TRANSIENT, VOLATILE); in buildCacheField()
526 abstract Iterable<FieldSpec> additionalFields(); in additionalFields()
535 Iterable<FieldSpec> additionalFields() { in additionalFields()
558 private final FieldSpec field =
562 Iterable<FieldSpec> additionalFields() { in additionalFields()
/external/libxkbcommon/src/xkbcomp/
Dparser.y202 %type <atom> FieldSpec Ident Element String
591 FieldSpec : Ident { $$ = $1; }
671 | FieldSpec OPAREN OptExprList CPAREN %prec OPAREN
685 Action : FieldSpec OPAREN OptExprList CPAREN
689 Lhs : FieldSpec
691 | FieldSpec DOT FieldSpec
693 | FieldSpec OBRACKET Expr CBRACKET
695 | FieldSpec DOT FieldSpec OBRACKET Expr CBRACKET
/external/javapoet/src/main/java/com/squareup/javapoet/
DFieldSpec.java32 public final class FieldSpec { class
40 private FieldSpec(Builder builder) { in FieldSpec() method in FieldSpec
171 public FieldSpec build() { in build()
172 return new FieldSpec(this); in build()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentCreatorImplementationFactory.java41 import com.squareup.javapoet.FieldSpec;
112 private ImmutableMap<ComponentRequirement, FieldSpec> fields;
186 private ImmutableMap<ComponentRequirement, FieldSpec> addFields() { in addFields()
189 ImmutableMap<ComponentRequirement, FieldSpec> result = in addFields()
193 FieldSpec.builder( in addFields()
297 FieldSpec field = fields.get(requirement); in factoryMethod()
312 ComponentRequirement requirement, FieldSpec field, MethodSpec.Builder factoryMethod) { in addNullHandlingForField()
/external/auto/value/src/main/java/com/google/auto/value/extension/serializable/processor/
DSerializableAutoValueExtension.java36 import com.squareup.javapoet.FieldSpec;
237 private static FieldSpec serialVersionUid() { in serialVersionUid()
238 return FieldSpec.builder( in serialVersionUid()
245 private List<FieldSpec> properties() { in properties()
249 FieldSpec.builder( in properties()

12