Home
last modified time | relevance | path

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

/external/dagger2/javatests/dagger/internal/codegen/
DComponentCreatorTestHelper.java39 protected final ComponentCreatorKind creatorKind; field in ComponentCreatorTestHelper
45 this.creatorKind = componentCreatorAnnotation.creatorKind(); in ComponentCreatorTestHelper()
61 if (creatorKind.equals(FACTORY)) { in process()
82 return new JavaFileBuilder(qualifiedName).withSettings(compilerMode, creatorKind); in javaFileBuilder()
DSubcomponentCreatorValidationTest.java543 creatorKind.equals(BUILDER) in testMultipleSettersPerTypeFails()
617 creatorKind.equals(BUILDER) in testMultipleSettersPerTypeIncludingResolvedGenericsFails()
675 String firstBinding = creatorKind.equals(FACTORY) in testMultipleSettersPerBoundInstanceTypeFails()
678 String secondBinding = creatorKind.equals(FACTORY) in testMultipleSettersPerBoundInstanceTypeFails()
735 creatorKind.equals(FACTORY) in testExtraSettersFails()
DComponentCreatorTest.java826 creatorKind.equals(BUILDER) in testMultipleSettersPerTypeFails()
889 creatorKind.equals(BUILDER) in testMultipleSettersPerTypeIncludingResolvedGenericsFails()
941 creatorKind.equals(BUILDER) in testExtraSettersFails()
/external/dagger2/java/dagger/internal/codegen/
DComponentCreatorAnnotation.java48 private final ComponentCreatorKind creatorKind; field in ComponentCreatorAnnotation
53 this.creatorKind = ComponentCreatorKind.valueOf(toUpperCase(annotation.getSimpleName())); in ComponentCreatorAnnotation()
81 ComponentCreatorKind creatorKind() { in creatorKind() method in ComponentCreatorAnnotation
82 return creatorKind; in creatorKind()
DComponentHjarProcessingStep.java154 ComponentCreatorKind creatorKind; in write() local
160 creatorKind = creatorDescriptor.kind(); in write()
173 creatorKind = BUILDER; in write()
182 generatedComponent.addMethod(staticCreatorMethod(builderMethodReturnType, creatorKind)); in write()
279 TypeName creatorMethodReturnType, ComponentCreatorKind creatorKind) { in staticCreatorMethod() argument
280 return MethodSpec.methodBuilder(Ascii.toLowerCase(creatorKind.typeName())) in staticCreatorMethod()
DComponentImplementationBuilder.java667 ComponentCreatorKind creatorKind; in addFactoryMethods() local
673 creatorKind = descriptor.kind(); in addFactoryMethods()
678 creatorKind = BUILDER; in addFactoryMethods()
685 methodBuilder(creatorKind.methodName()) in addFactoryMethods()
698 "return new $L().$L()", creatorKind.typeName(), factoryMethodName) in addFactoryMethods()
DErrorMessages.java63 switch (creatorAnnotation.creatorKind()) { in creatorMessagesFor()
DComponentCreatorDescriptor.java60 return annotation().creatorKind(); in kind()
DComponentImplementation.java462 private ComponentCreatorKind creatorKind() { in creatorKind() method in ComponentImplementation
477 : name.nestedClass(creatorKind().typeName()); in getCreatorName()
DComponentCreatorValidator.java128 switch (annotation.creatorKind()) { in validate()
DModuleValidator.java298 creatorAnnotation.creatorKind().typeName(), in moduleSubcomponentsIncludesCreator()