Searched refs:mapKeyAnnotation (Results 1 – 3 of 3) sorted by relevance
151 static TypeAndValue<?> typeAndValueOfMapKey(Annotation mapKeyAnnotation) { in typeAndValueOfMapKey() argument152 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()
87 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue() local89 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()90 return mapKeyAnnotation.unwrapValue() in unwrapValue()280 AnnotationMirror mapKeyAnnotation, final MapKeySnippet mapKeySnippet) { in annotationSnippet() argument284 mapKeyAnnotation.getAnnotationType().asElement().getSimpleName(), in annotationSnippet()287 getAnnotationValuesWithDefaults(mapKeyAnnotation).entrySet(), in annotationSnippet()
286 AnnotationMirror mapKeyAnnotation = getMapKey(method).get();287 return MapKeys.unwrapValue(mapKeyAnnotation).isPresent()288 ? getUnwrappedMapKeyType(mapKeyAnnotation.getAnnotationType(), types)289 : mapKeyAnnotation.getAnnotationType();