Home
last modified time | relevance | path

Searched refs:creatorKind (Results 1 – 11 of 11) sorted by relevance

/external/dagger2/javatests/dagger/internal/codegen/
DComponentCreatorTestHelper.java42 protected final ComponentCreatorKind creatorKind; field in ComponentCreatorTestHelper
48 this.creatorKind = componentCreatorAnnotation.creatorKind(); in ComponentCreatorTestHelper()
64 if (creatorKind.equals(FACTORY)) { in process()
85 return new JavaFileBuilder(qualifiedName).withSettings(compilerMode, creatorKind); in javaFileBuilder()
DSubcomponentCreatorValidationTest.java544 creatorKind.equals(BUILDER) in testMultipleSettersPerTypeFails()
618 creatorKind.equals(BUILDER) in testMultipleSettersPerTypeIncludingResolvedGenericsFails()
676 String firstBinding = creatorKind.equals(FACTORY) in testMultipleSettersPerBoundInstanceTypeFails()
679 String secondBinding = creatorKind.equals(FACTORY) in testMultipleSettersPerBoundInstanceTypeFails()
735 creatorKind.equals(FACTORY) in testExtraSettersFails()
DComponentCreatorTest.java841 creatorKind.equals(BUILDER) in testMultipleSettersPerTypeFails()
905 creatorKind.equals(BUILDER) in testMultipleSettersPerTypeIncludingResolvedGenericsFails()
958 creatorKind.equals(BUILDER) in testExtraSettersFails()
/external/dagger2/java/dagger/internal/codegen/binding/
DComponentCreatorAnnotation.java49 private final ComponentCreatorKind creatorKind; field in ComponentCreatorAnnotation
55 this.creatorKind = ComponentCreatorKind.valueOf(toUpperCase(annotation.getSimpleName())); in ComponentCreatorAnnotation()
83 public ComponentCreatorKind creatorKind() { in creatorKind() method in ComponentCreatorAnnotation
84 return creatorKind; in creatorKind()
DErrorMessages.java65 switch (creatorAnnotation.creatorKind()) { in creatorMessagesFor()
DComponentCreatorDescriptor.java60 return annotation().creatorKind(); in kind()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentHjarGenerator.java118 ComponentCreatorKind creatorKind; in write() local
123 creatorKind = creatorDescriptor.kind(); in write()
136 creatorKind = BUILDER; in write()
145 generatedComponent.addMethod(staticCreatorMethod(builderMethodReturnType, creatorKind)); in write()
249 TypeName creatorMethodReturnType, ComponentCreatorKind creatorKind) { in staticCreatorMethod() argument
250 return MethodSpec.methodBuilder(Ascii.toLowerCase(creatorKind.typeName())) in staticCreatorMethod()
DComponentImplementationBuilder.java457 ComponentCreatorKind creatorKind; in createRootComponentFactoryMethod() local
465 creatorKind = descriptor.kind(); in createRootComponentFactoryMethod()
470 creatorKind = BUILDER; in createRootComponentFactoryMethod()
477 methodBuilder(creatorKind.methodName()) in createRootComponentFactoryMethod()
489 .addStatement("return new $L().$L()", creatorKind.typeName(), factoryMethodName) in createRootComponentFactoryMethod()
/external/dagger2/java/dagger/internal/codegen/writing/
DComponentImplementation.java254 private ComponentCreatorKind creatorKind() { in creatorKind() method in ComponentImplementation
269 : name.nestedClass(creatorKind().typeName()); in getCreatorName()
/external/dagger2/java/dagger/internal/codegen/validation/
DComponentCreatorValidator.java146 switch (annotation.creatorKind()) { in validate()
DModuleValidator.java314 creatorAnnotation.creatorKind().typeName(), in moduleSubcomponentsIncludesCreator()