Home
last modified time | relevance | path

Searched refs:getAnnotationType (Results 1 – 25 of 94) sorted by relevance

1234

/external/auto/common/src/main/java/com/google/auto/common/
DAnnotationMirrors.java48 return MoreTypes.equivalence().equivalent(left.getAnnotationType(),
49 right.getAnnotationType()) && AnnotationValues.equivalence().pairwise().equivalent(
55 DeclaredType type = annotation.getAnnotationType();
89 ElementFilter.methodsIn(annotation.getAnnotationType().asElement().getEnclosedElements())) { in getAnnotationValuesWithDefaults()
135 MoreElements.asType(annotationMirror.getAnnotationType().asElement()).getQualifiedName(), in getAnnotationElementAndValue()
149 return isAnnotationPresent(input.getAnnotationType().asElement(), annotationType); in getAnnotatedAnnotations()
/external/guice/core/src/com/google/inject/
DKey.java145 public final Class<? extends Annotation> getAnnotationType() { in getAnnotationType() method in Key
146 return annotationStrategy.getAnnotationType(); in getAnnotationType()
155 return annotationStrategy.getAnnotationType() != null; in hasAnnotationType()
165 return annotationStrategy.getAnnotationType().toString(); in getAnnotationName()
306 Class<? extends Annotation> getAnnotationType(); in getAnnotationType() method
373 public Class<? extends Annotation> getAnnotationType() { in getAnnotationType() method in Key.NullAnnotationStrategy
399 return new AnnotationTypeStrategy(getAnnotationType(), annotation); in withoutAttributes()
408 public Class<? extends Annotation> getAnnotationType() { in getAnnotationType() method in Key.AnnotationInstanceStrategy
461 public Class<? extends Annotation> getAnnotationType() { in getAnnotationType() method in Key.AnnotationTypeStrategy
/external/dagger2/java/dagger/internal/codegen/base/
DComponentAnnotation.java163 .anyMatch(annotationClass -> isTypeOf(annotationClass, annotation.getAnnotationType())); in isComponentAnnotation()
171 if (isTypeOf(Component.class, annotation.getAnnotationType())) { in componentAnnotation()
174 if (isTypeOf(Subcomponent.class, annotation.getAnnotationType())) { in componentAnnotation()
177 if (isTypeOf(ProductionComponent.class, annotation.getAnnotationType())) { in componentAnnotation()
180 if (isTypeOf(ProductionSubcomponent.class, annotation.getAnnotationType())) { in componentAnnotation()
293 return ClassName.get(asType(moduleAnnotation().annotation().getAnnotationType().asElement())) in isProduction()
DModuleAnnotation.java52 return annotation().getAnnotationType().asElement().getSimpleName().toString(); in annotationName()
97 .anyMatch(asTypeElement(annotation.getAnnotationType()).getQualifiedName()::contentEquals); in isModuleAnnotation()
/external/dagger2/java/dagger/internal/codegen/binding/
DMapKeys.java84 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue()
86 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()
94 ? getUnwrappedMapKeyType(mapKeyAnnotation.getAnnotationType(), types) in mapKeyType()
95 : mapKeyAnnotation.getAnnotationType(); in mapKeyType()
173 if (MoreTypes.asTypeElement(mapKey.getAnnotationType()) in directMapKeyExpression()
DConfigurationAnnotations.java82 if (mirror.getAnnotationType().asElement().getSimpleName().contentEquals("Nullable")) { in getNullableType()
83 return Optional.of(mirror.getAnnotationType()); in getNullableType()
DAnnotationExpression.java62 MoreTypes.asTypeElement(annotation.getAnnotationType())); in AnnotationExpression()
78 MoreElements.asType(annotation.getAnnotationType().asElement())), in getAnnotationInstanceExpression()
/external/javassist/src/main/javassist/bytecode/annotation/
DAnnotationImpl.java98 private Class<?> getAnnotationType() { in getAnnotationType() method in AnnotationImpl
146 return getAnnotationType(); in invoke()
192 getAnnotationType(); in hashCode()
251 if (getAnnotationType().equals(otherAnnotationType) == false) in checkEquals()
/external/dagger2/java/dagger/model/
DScope.java47 return MoreTypes.asTypeElement(scopeAnnotation().getAnnotationType()); in scopeAnnotationElement()
62 return isScope(MoreElements.asType(scopeAnnotation.getAnnotationType().asElement())); in isScope()
/external/auto/value/src/main/java/com/google/auto/value/processor/
DGwtCompatibility.java37 Name name = annotation.getAnnotationType().asElement().getSimpleName(); in GwtCompatibility()
59 TypeElement annotationElement = (TypeElement) annotation.getAnnotationType().asElement(); in gwtCompatibleAnnotationString()
DAutoValueOrOneOfProcessor.java578 return annotation.getAnnotationType().asElement().getSimpleName().contentEquals("Nullable"); in isNullable()
944 .filter(a -> isAnnotationPresent(a.getAnnotationType().asElement(), Inherited.class)) in getAnnotationsMarkedWithInherited()
954 return ((QualifiedNameable) annotation.getAnnotationType().asElement()) in getAnnotationFqName()
1013 .map(a -> a.getAnnotationType().asElement()) in propertyFieldAnnotations()
1034 .map(a -> a.getAnnotationType().asElement()) in getReturnTypeAnnotations()
1047 Element annotationElement = annotation.getAnnotationType().asElement(); in annotationVisibleFrom()
1091 TypeElement annotationElement = MoreTypes.asTypeElement(annotation.getAnnotationType()); in getAnnotationMirror()
/external/auto/value/src/main/java/com/google/auto/value/extension/memoized/processor/
DMemoizedValidator.java72 .map(annotation -> MoreTypes.asTypeElement(annotation.getAnnotationType())) in isAutoValue()
78 TypeElement annotationElement = MoreTypes.asTypeElement(annotation.getAnnotationType()); in getAnnotationMirror()
DMemoizeExtension.java269 return ((QualifiedNameable) annotation.getAnnotationType().asElement()) in getAnnotationFqName()
276 Element annotationElement = annotation.getAnnotationType().asElement(); in annotationVisibleFrom()
375 .filter(a -> isAnnotationPresent(a.getAnnotationType().asElement(), Inherited.class)) in getAnnotationsMarkedWithInherited()
494 MoreElements.asType(annotation.getAnnotationType().asElement()) in pullDownMethodAnnotation()
590 .map(a -> a.getAnnotationType().asElement().getSimpleName()) in containsNullable()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DAnnotationEntry.java97 public String getAnnotationType() { in getAnnotationType() method in AnnotationEntry
140 result.append(getAnnotationType()); in toShortString()
/external/guice/core/src/com/google/inject/internal/
DConstantBindingBuilderImpl.java125 } else if (base.getKey().getAnnotationType() != null) { in toConstant()
126 key = Key.get(typeAsClassT, base.getKey().getAnnotationType()); in toConstant()
DAnnotations.java376 Class<? extends Annotation> annotationType = key.getAnnotationType();
379 } else if (key.getAnnotationType() != null) {
380 return "@" + key.getAnnotationType().getName();
DScopeBindingProcessor.java41 checkNotNull(command.getAnnotationType(), "annotation type"); in visit()
DUntargettedBindingProcessor.java45 if (key.getAnnotationType() != null) { in visit()
/external/turbine/javatests/com/google/turbine/processing/
DTurbineAnnotationMirrorTest.java62 .filter(x -> x.getAnnotationType().asElement().getSimpleName().contentEquals(name)) in getAnnotation()
160 .map(anno -> anno.getAnnotationType().asElement().getSimpleName().toString());
220 ((TypeElement) a.getAnnotationType().asElement()).getQualifiedName().contentEquals("A");
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DCheckedProviderMethod.java85 } else if (key.getAnnotationType() != null) { in configure()
86 sbinder = sbinder.annotatedWith(key.getAnnotationType()); in configure()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/
DFieldAnnotationsTestCase.java135 + " but it had name " + a.getAnnotationType(), a.getAnnotationType() in checkAnnotationEntry()
/external/guice/core/src/com/google/inject/util/
DModules.java214 overridesScopeAnnotations.put(scopeBinding.getAnnotationType(), scopeBinding); in configure()
296 overridesScopeAnnotations.remove(scopeBinding.getAnnotationType()); in configure()
311 .addError(sb.toString(), scopeBinding.getAnnotationType().getSimpleName()); in configure()
/external/guice/core/src/com/google/inject/spi/
DScopeBinding.java53 public Class<? extends Annotation> getAnnotationType() { in getAnnotationType() method in ScopeBinding
/external/dagger2/java/dagger/internal/codegen/writing/
DGwtCompatibility.java54 Name simpleName = annotation.getAnnotationType().asElement().getSimpleName(); in isGwtIncompatible()
/external/guice/core/test/com/google/inject/
DKeyTest.java58 assertEquals(Foo.class, ki.getAnnotationType()); in testOfType()
272 assertEquals(NoDefaults.class, noDefaults.getAnnotationType()); in testKeysWithDefaultAnnotations()
276 assertEquals(SomeDefaults.class, someDefaults.getAnnotationType()); in testKeysWithDefaultAnnotations()

1234