Home | History | Annotate | Download | only in multibindings

Lines Matching refs:mapKey

76     @SuppressWarnings({"unchecked", "rawtypes"}) // mapKey doesn't know its key type
81 AnnotationOrError mapKey = findMapKeyAnnotation(binder, method);
83 if (mapKey.annotation != null) {
84 binder.addError("Found a MapKey annotation on non map binding at %s.", method);
88 if (mapKey.error) {
89 // Already failed on the MapKey, don't bother doing more work.
92 if (mapKey.annotation == null) {
93 // If no MapKey, make an error and abort.
94 binder.addError("No MapKey found for map binding at %s.", method);
97 TypeAndValue typeAndValue = typeAndValueOfMapKey(mapKey.annotation);
101 if (mapKey.annotation != null) {
102 binder.addError("Found a MapKey annotation on non map binding at %s.", method);
135 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class);
136 if (mapKey != null) {
138 binder.addError("Found more than one MapKey annotations on %s.", method);
141 if (mapKey.unwrapValue()) {
146 binder.addError("Array types are not allowed in a MapKey with unwrapValue=true: %s",
151 binder.addError("No 'value' method in MapKey with unwrapValue=true: %s",
164 if (!mapKeyAnnotation.annotationType().getAnnotation(MapKey.class).unwrapValue()) {