Home
last modified time | relevance | path

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

/external/dagger2/java/dagger/internal/codegen/binding/
DMapKeys.java84 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue() local
86 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()
87 return mapKeyAnnotation.unwrapValue() in unwrapValue()
92 static TypeMirror mapKeyType(AnnotationMirror mapKeyAnnotation, DaggerTypes types) { in mapKeyType() argument
93 return unwrapValue(mapKeyAnnotation).isPresent() in mapKeyType()
94 ? getUnwrappedMapKeyType(mapKeyAnnotation.getAnnotationType(), types) in mapKeyType()
95 : mapKeyAnnotation.getAnnotationType(); in mapKeyType()
149 AnnotationMirror mapKeyAnnotation = binding.mapKeyAnnotation().get(); in getMapKeyExpression() local
151 mapKeyAnnotation, requestingClass.packageName()) in getMapKeyExpression()
152 ? directMapKeyExpression(mapKeyAnnotation, elements) in getMapKeyExpression()
[all …]
DContributionBinding.java56 public final Optional<AnnotationMirror> mapKeyAnnotation() { in mapKeyAnnotation() method in ContributionBinding
/external/guice/core/src/com/google/inject/internal/
DProvidesMethodScanner.java151 static TypeAndValue<?> typeAndValueOfMapKey(Annotation mapKeyAnnotation) { in typeAndValueOfMapKey() argument
152 if (!mapKeyAnnotation.annotationType().getAnnotation(MapKey.class).unwrapValue()) { in typeAndValueOfMapKey()
153 return new TypeAndValue(TypeLiteral.get(mapKeyAnnotation.annotationType()), mapKeyAnnotation); in typeAndValueOfMapKey()
156 Method valueMethod = mapKeyAnnotation.annotationType().getDeclaredMethod("value"); in typeAndValueOfMapKey()
159 TypeLiteral.get(mapKeyAnnotation.annotationType()).getReturnType(valueMethod); in typeAndValueOfMapKey()
160 return new TypeAndValue(returnType, valueMethod.invoke(mapKeyAnnotation)); in typeAndValueOfMapKey()
/external/dagger2/java/dagger/android/processor/
DAndroidMapKeyValidator.java102 AnnotationMirror mapKeyAnnotation = in validateMethod() local
105 elements.getTypeElement(injectedTypeFromMapKey(mapKeyAnnotation).get()); in validateMethod()
/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/
DMapMultibindingValidator.java181 .wrap(mapBinding.mapKeyAnnotation().get().getAnnotationType()))); in indexByMapKeyAnnotationType()