/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | AnnotationSpecTest.java | 110 AnnotationSpec a = AnnotationSpec.builder(AnnotationC.class).build(); in equalsAndHashCode() 111 AnnotationSpec b = AnnotationSpec.builder(AnnotationC.class).build(); in equalsAndHashCode() 114 a = AnnotationSpec.builder(AnnotationC.class).addMember("value", "$S", "123").build(); in equalsAndHashCode() 115 b = AnnotationSpec.builder(AnnotationC.class).addMember("value", "$S", "123").build(); in equalsAndHashCode() 123 AnnotationSpec annotation = AnnotationSpec.get(element.getAnnotationMirrors().get(0)); in defaultAnnotation() 160 AnnotationSpec annotation = AnnotationSpec.get(element.getAnnotationMirrors().get(0)); in defaultAnnotationWithImport() 194 AnnotationSpec.Builder builder = AnnotationSpec.builder(HasDefaultsAnnotation.class); in emptyArray() 207 AnnotationSpec.Builder builder = AnnotationSpec.builder(HasDefaultsAnnotation.class); in dynamicArrayOfEnumConstants() 248 AnnotationSpec.Builder builder = AnnotationSpec.get(element.getAnnotationMirrors().get(0)) in defaultAnnotationToBuilder() 266 AnnotationSpec spec = AnnotationSpec.get(annotation); in reflectAnnotation() [all …]
|
D | AnnotatedTypeNameTest.java | 33 private final AnnotationSpec NEVER_NULL = AnnotationSpec.builder(NeverNull.class).build(); 35 private final AnnotationSpec TYPE_USE_ANNOTATION = 36 AnnotationSpec.builder(TypeUseAnnotation.class).build(); 46 TypeName.BOOLEAN.annotated((AnnotationSpec[]) null); in nullAnnotationArray() 50 TypeName.DOUBLE.annotated((List<AnnotationSpec>) null); in nullAnnotationList()
|
/external/dagger2/java/dagger/grpc/server/processor/ |
D | SourceGenerator.java | 19 import com.squareup.javapoet.AnnotationSpec; 48 static AnnotationSpec binds() { in binds() 49 return AnnotationSpec.builder(ClassName.get("dagger", "Binds")).build(); in binds() 52 static AnnotationSpec intoSet() { in intoSet() 53 return AnnotationSpec.builder(ClassName.get("dagger.multibindings", "IntoSet")).build(); in intoSet() 56 static AnnotationSpec provides() { in provides() 57 return AnnotationSpec.builder(ClassName.get("dagger", "Provides")).build(); in provides() 61 static AnnotationSpec module(ClassName... includedModules) { in module() 62 AnnotationSpec.Builder module = AnnotationSpec.builder(ClassName.get("dagger", "Module")); in module() 103 static AnnotationSpec inject() { in inject() [all …]
|
D | GrpcServiceModel.java | 27 import com.squareup.javapoet.AnnotationSpec; 118 protected final Optional<AnnotationSpec> generatedAnnotation() { 132 protected final AnnotationSpec forGrpcService() { 133 return AnnotationSpec.builder(ForGrpcService.class)
|
/external/auto/common/src/main/java/com/google/auto/common/ |
D | GeneratedAnnotationSpecs.java | 18 import com.squareup.javapoet.AnnotationSpec; 37 public static Optional<AnnotationSpec> generatedAnnotationSpec( in generatedAnnotationSpec() 40 .map(AnnotationSpec.Builder::build); in generatedAnnotationSpec() 51 public static Optional<AnnotationSpec> generatedAnnotationSpec( in generatedAnnotationSpec() 64 public static Optional<AnnotationSpec> generatedAnnotationSpec( in generatedAnnotationSpec() 67 .map(AnnotationSpec.Builder::build); in generatedAnnotationSpec() 78 public static Optional<AnnotationSpec> generatedAnnotationSpec( in generatedAnnotationSpec() 84 private static Optional<AnnotationSpec.Builder> generatedAnnotationSpecBuilder( in generatedAnnotationSpecBuilder() 89 AnnotationSpec.builder(ClassName.get(generated)) in generatedAnnotationSpecBuilder() 93 private static Optional<AnnotationSpec.Builder> generatedAnnotationSpecBuilder( in generatedAnnotationSpecBuilder() [all …]
|
/external/dagger2/java/dagger/internal/codegen/javapoet/ |
D | AnnotationSpecs.java | 23 import com.squareup.javapoet.AnnotationSpec; 42 public static AnnotationSpec suppressWarnings(Suppression first, Suppression... rest) { in suppressWarnings() 47 public static AnnotationSpec suppressWarnings(ImmutableSet<Suppression> suppressions) { in suppressWarnings() 49 AnnotationSpec.Builder builder = AnnotationSpec.builder(SuppressWarnings.class); in suppressWarnings()
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | GwtCompatibility.java | 21 import com.squareup.javapoet.AnnotationSpec; 34 static Optional<AnnotationSpec> gwtIncompatibleAnnotation(Binding binding) { in gwtIncompatibleAnnotation() 38 Optional<AnnotationSpec> gwtIncompatible = in gwtIncompatibleAnnotation() 43 .map(AnnotationSpec::get) in gwtIncompatibleAnnotation()
|
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | AnnotationSpec.java | 44 public final class AnnotationSpec { class 48 private AnnotationSpec(Builder builder) { in AnnotationSpec() method in AnnotationSpec 108 public static AnnotationSpec get(Annotation annotation) { in get() 112 public static AnnotationSpec get(Annotation annotation, boolean includeDefaultValues) { in get() 142 public static AnnotationSpec get(AnnotationMirror annotation) { in get() 144 AnnotationSpec.Builder builder = AnnotationSpec.builder(ClassName.get(element)); in get() 239 public AnnotationSpec build() { in build() 244 return new AnnotationSpec(this); in build()
|
D | FieldSpec.java | 36 public final List<AnnotationSpec> annotations; 116 public final List<AnnotationSpec> annotations = new ArrayList<>(); 134 public Builder addAnnotations(Iterable<AnnotationSpec> annotationSpecs) { in addAnnotations() 136 for (AnnotationSpec annotationSpec : annotationSpecs) { in addAnnotations() 142 public Builder addAnnotation(AnnotationSpec annotationSpec) { in addAnnotation() 148 this.annotations.add(AnnotationSpec.builder(annotation).build()); in addAnnotation()
|
D | TypeName.java | 92 public final List<AnnotationSpec> annotations; 101 private TypeName(String keyword, List<AnnotationSpec> annotations) { in TypeName() 107 TypeName(List<AnnotationSpec> annotations) { in TypeName() 111 public final TypeName annotated(AnnotationSpec... annotations) { in annotated() 115 public TypeName annotated(List<AnnotationSpec> annotations) { in annotated() 124 protected final List<AnnotationSpec> concatAnnotations(List<AnnotationSpec> annotations) { in concatAnnotations() 125 List<AnnotationSpec> allAnnotations = new ArrayList<>(this.annotations); in concatAnnotations() 233 for (AnnotationSpec annotation : annotations) { in emitAnnotations()
|
D | ParameterSpec.java | 36 public final List<AnnotationSpec> annotations; 142 public final List<AnnotationSpec> annotations = new ArrayList<>(); 160 public Builder addAnnotations(Iterable<AnnotationSpec> annotationSpecs) { in addAnnotations() 162 for (AnnotationSpec annotationSpec : annotationSpecs) { in addAnnotations() 168 public Builder addAnnotation(AnnotationSpec annotationSpec) { in addAnnotation() 174 this.annotations.add(AnnotationSpec.builder(annotation).build()); in addAnnotation()
|
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/ |
D | AggregatedDepsGenerator.java | 20 import com.squareup.javapoet.AnnotationSpec; 78 private AnnotationSpec aggregatedDepsAnnotation() { in aggregatedDepsAnnotation() 79 AnnotationSpec.Builder annotationBuilder = AnnotationSpec.builder(AGGREGATED_DEPS); in aggregatedDepsAnnotation()
|
D | PkgPrivateModuleGenerator.java | 19 import com.squareup.javapoet.AnnotationSpec; 61 AnnotationSpec.get(metadata.getOptionalInstallInAnnotationMirror().get())) in generate() 63 AnnotationSpec.builder(metadata.getAnnotation()) in generate()
|
D | PkgPrivateEntryPointGenerator.java | 19 import com.squareup.javapoet.AnnotationSpec; 69 AnnotationSpec.get(metadata.getOptionalInstallInAnnotationMirror().get())); in generate()
|
/external/dagger2/java/dagger/hilt/processor/internal/ |
D | ComponentGenerator.java | 26 import com.squareup.javapoet.AnnotationSpec; 57 private final ImmutableList<AnnotationSpec> extraAnnotations; 69 ImmutableList<AnnotationSpec> extraAnnotations, in ComponentGenerator() 106 private AnnotationSpec getComponentAnnotation() { in getComponentAnnotation() 107 AnnotationSpec.Builder builder = AnnotationSpec.builder(componentAnnotation); in getComponentAnnotation()
|
D | Components.java | 24 import com.squareup.javapoet.AnnotationSpec; 82 public static AnnotationSpec getInstallInAnnotationSpec(ImmutableSet<ClassName> components) { in getInstallInAnnotationSpec() 84 AnnotationSpec.Builder builder = AnnotationSpec.builder(ClassNames.INSTALL_IN); in getInstallInAnnotationSpec()
|
/external/dagger2/java/dagger/android/processor/ |
D | ContributesAndroidInjectorGenerator.java | 36 import com.squareup.javapoet.AnnotationSpec; 121 AnnotationSpec.builder(Module.class) in generate() 156 private AnnotationSpec androidInjectorMapKey(AndroidInjectorDescriptor descriptor) { in androidInjectorMapKey() 158 return AnnotationSpec.builder(AndroidInjectionKey.class) in androidInjectorMapKey() 162 return AnnotationSpec.builder(ClassKey.class) in androidInjectorMapKey() 171 AnnotationSpec.Builder subcomponentAnnotation = AnnotationSpec.builder(Subcomponent.class); in subcomponent()
|
D | AndroidInjectorDescriptor.java | 30 import com.squareup.javapoet.AnnotationSpec; 59 abstract ImmutableSet<AnnotationSpec> scopes(); in scopes() 74 abstract ImmutableSet.Builder<AnnotationSpec> scopesBuilder(); in scopesBuilder() 135 builder.scopesBuilder().add(AnnotationSpec.get(scope)); in createIfValid()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | Generators.java | 24 import com.squareup.javapoet.AnnotationSpec; 83 private static Optional<AnnotationSpec> getNullableAnnotationSpec(Element element) { in getNullableAnnotationSpec() 90 AnnotationSpec annotationSpec = AnnotationSpec.get(annotationMirror); in getNullableAnnotationSpec() 93 ? Optional.of(AnnotationSpec.builder(AndroidClassNames.NULLABLE).build()) in getNullableAnnotationSpec() 140 .map(AnnotationSpec::get) in copyConstructor() 154 AnnotationSpec.get( in copyLintAnnotations() 485 AnnotationSpec.Builder annotationBuilder = AnnotationSpec.builder(SuppressWarnings.class); in addSuppressAnnotation()
|
/external/auto/value/src/main/java/com/google/auto/value/extension/memoized/processor/ |
D | MemoizeExtension.java | 57 import com.squareup.javapoet.AnnotationSpec; 109 private static final AnnotationSpec SUPPRESS_WARNINGS = 110 AnnotationSpec.builder(SuppressWarnings.class).addMember("value", "$S", "Immutable").build(); 147 private final Optional<AnnotationSpec> lazyInitAnnotation; 323 private ImmutableList<AnnotationSpec> copyAnnotations( in copyAnnotations() 327 return annotationsToCopy.stream().map(AnnotationSpec::get).collect(toImmutableList()); in copyAnnotations() 380 private ImmutableList<AnnotationSpec> copiedClassAnnotations(TypeElement type) { in copiedClassAnnotations() 417 AnnotationSpec annotationSpec = AnnotationSpec.get(annotation); in MethodOverrider() 580 private static Optional<AnnotationSpec> getLazyInitAnnotation(Elements elements) { in getLazyInitAnnotation() 584 return Optional.of(AnnotationSpec.builder(LAZY_INIT).build()); in getLazyInitAnnotation() [all …]
|
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/ |
D | ViewModelModuleGenerator.kt | 20 import com.squareup.javapoet.AnnotationSpec in <lambda>() 69 AnnotationSpec.builder(ClassNames.ORIGINATING_ELEMENT) in <lambda>() 104 AnnotationSpec.builder(ClassNames.STRING_KEY) in <lambda>() 142 AnnotationSpec.builder(ClassNames.INSTALL_IN) in <lambda>()
|
/external/dagger2/java/dagger/hilt/processor/internal/generatesrootinput/ |
D | GeneratesRootInputPropagatedDataGenerator.java | 19 import com.squareup.javapoet.AnnotationSpec; 43 AnnotationSpec.builder(ClassNames.GENERATES_ROOT_INPUT_PROPAGATED_DATA) in generate()
|
/external/dagger2/java/dagger/internal/codegen/base/ |
D | SourceFileGenerator.java | 26 import com.squareup.javapoet.AnnotationSpec; 93 Optional<AnnotationSpec> generatedAnnotation = in buildJavaFile() 97 AnnotationSpec.builder(ClassName.get(annotation)) in buildJavaFile()
|
/external/dagger2/java/dagger/hilt/processor/internal/aliasof/ |
D | AliasOfPropagatedDataGenerator.java | 19 import com.squareup.javapoet.AnnotationSpec; 47 AnnotationSpec.builder(ClassNames.ALIAS_OF_PROPAGATED_DATA) in generate()
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/ |
D | OtherProfileGenerator.java | 32 import com.squareup.javapoet.AnnotationSpec; 108 AnnotationSpec.builder(SuppressWarnings.class) in generateOtherProfileClass() 119 AnnotationSpec.builder(SuppressWarnings.class) in generateOtherProfileClass() 289 AnnotationSpec.builder(SuppressWarnings.class) in generateCrossProfileCallbackMethodOnOtherProfileClass() 354 AnnotationSpec.builder(SuppressWarnings.class) in generateFutureMethodOnOtherProfileClass()
|