Home
last modified time | relevance | path

Searched refs:annotationBuilder (Results 1 – 5 of 5) sorted by relevance

/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/
DAggregatedDepsGenerator.java79 AnnotationSpec.Builder annotationBuilder = AnnotationSpec.builder(AGGREGATED_DEPS); in aggregatedDepsAnnotation() local
80 components.forEach(component -> annotationBuilder.addMember("components", "$S", component)); in aggregatedDepsAnnotation()
81 replacedDependencies.forEach(dep -> annotationBuilder.addMember("replaces", "$S", dep)); in aggregatedDepsAnnotation()
82 testName.ifPresent(test -> annotationBuilder.addMember("test", "$S", test)); in aggregatedDepsAnnotation()
83 annotationBuilder.addMember(dependencyType, "$S", dependency.getQualifiedName()); in aggregatedDepsAnnotation()
84 return annotationBuilder.build(); in aggregatedDepsAnnotation()
/external/dagger2/java/dagger/internal/codegen/base/
DComponentAnnotation.java168 RealComponentAnnotation.Builder annotationBuilder = in componentAnnotation() local
172 return annotationBuilder.isProduction(false).isSubcomponent(false).build(); in componentAnnotation()
175 return annotationBuilder.isProduction(false).isSubcomponent(true).build(); in componentAnnotation()
178 return annotationBuilder.isProduction(true).isSubcomponent(false).build(); in componentAnnotation()
181 return annotationBuilder.isProduction(true).isSubcomponent(true).build(); in componentAnnotation()
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DGenerators.java485 AnnotationSpec.Builder annotationBuilder = AnnotationSpec.builder(SuppressWarnings.class); in addSuppressAnnotation() local
487 annotationBuilder.addMember("value", "$S", key); in addSuppressAnnotation()
489 builder.addAnnotation(annotationBuilder.build()); in addSuppressAnnotation()
/external/javapoet/src/test/java/com/squareup/javapoet/
DTypeSpecTest.java778 TypeSpec annotation = TypeSpec.annotationBuilder("MyAnnotation") in annotation()
797 TypeSpec bar = TypeSpec.annotationBuilder("Bar") in innerAnnotationInAnnotationDeclaration()
822 TypeSpec anno = TypeSpec.annotationBuilder("Anno") in annotationWithFields()
1621 TypeSpec type = TypeSpec.annotationBuilder("Taco") in annotationDeclarationToString()
2152 TypeSpec.annotationBuilder("A").superclass(ClassName.get(Object.class)); in superClassOnlyValidForClasses()
2351 TypeSpec.Builder annotationBuilder = TypeSpec.annotationBuilder("Taco"); in initializerBlockUnsupportedExceptionOnAnnotation() local
2353 annotationBuilder.addInitializerBlock(CodeBlock.builder().build()); in initializerBlockUnsupportedExceptionOnAnnotation()
2423 a = TypeSpec.annotationBuilder("taco").build(); in equalsAndHashCode()
2424 b = TypeSpec.annotationBuilder("taco").build(); in equalsAndHashCode()
2434 assertThat(TypeSpec.annotationBuilder(className).build().name).isEqualTo("Example"); in classNameFactories()
/external/javapoet/src/main/java/com/squareup/javapoet/
DTypeSpec.java159 public static Builder annotationBuilder(String name) { in annotationBuilder() method in TypeSpec
163 public static Builder annotationBuilder(ClassName className) { in annotationBuilder() method in TypeSpec
164 return annotationBuilder(checkNotNull(className, "className == null").simpleName()); in annotationBuilder()