Returns the RequestKind that matches the wrapping types (if any) of type.
(TypeMirror type)
| 96 | |
| 97 | /** Returns the {@link RequestKind} that matches the wrapping types (if any) of {@code type}. */ |
| 98 | static RequestKind getRequestKind(TypeMirror type) { |
| 99 | checkTypePresent(type); |
| 100 | for (RequestKind kind : RequestKind.values()) { |
| 101 | if (matchesKind(kind, type)) { |
| 102 | if (kind.equals(PROVIDER) && matchesKind(LAZY, extractKeyType(kind, type))) { |
| 103 | return PROVIDER_OF_LAZY; |
| 104 | } |
| 105 | return kind; |
| 106 | } |
| 107 | } |
| 108 | return INSTANCE; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Returns {@code true} if {@code type} is a parameterized type of {@code kind}'s {@link |
no test coverage detected