Home
last modified time | relevance | path

Searched refs:declaredType (Results 1 – 4 of 4) sorted by relevance

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DMembersInjectionBinding.java168 boolean hasInjectedMembers(DeclaredType declaredType) { in hasInjectedMembers() argument
169 return !getInjectionSites(declaredType).isEmpty(); in hasInjectedMembers()
178 DeclaredType declaredType, Optional<TypeMirror> resolvedType) { in forInjectedType() argument
180 if (!declaredType.getTypeArguments().isEmpty() && resolvedType.isPresent()) { in forInjectedType()
184 types.isSameType(types.erasure(resolved), types.erasure(declaredType)), in forInjectedType()
187 types.erasure(declaredType)); in forInjectedType()
188 declaredType = resolved; in forInjectedType()
190 ImmutableSortedSet<InjectionSite> injectionSites = getInjectionSites(declaredType); in forInjectedType()
203 MoreTypes.nonObjectSuperclass(types, elements, declaredType) in forInjectedType()
212 Key key = keyFactory.forMembersInjectedType(declaredType); in forInjectedType()
[all …]
DProducesMethodValidator.java176 DeclaredType declaredType = MoreTypes.asDeclared(type); in validateSingleReturnType() local
177 if (declaredType.getTypeArguments().isEmpty()) { in validateSingleReturnType()
180 validateKeyType(reportBuilder, Iterables.getOnlyElement(declaredType.getTypeArguments())); in validateSingleReturnType()
195 DeclaredType declaredType = MoreTypes.asDeclared(type); in validateSetType() local
196 if (!declaredType.asElement().equals(getSetElement())) { in validateSetType()
198 } else if (declaredType.getTypeArguments().isEmpty()) { in validateSetType()
203 Iterables.getOnlyElement(declaredType.getTypeArguments())); in validateSetType()
/external/guava/guava/src/com/google/common/base/
DThrowables.java61 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfInstanceOf() argument
63 if (throwable != null && declaredType.isInstance(throwable)) { in propagateIfInstanceOf()
64 throw declaredType.cast(throwable); in propagateIfInstanceOf()
107 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfPossible() argument
108 propagateIfInstanceOf(throwable, declaredType); in propagateIfPossible()
/external/guava/guava/src/com/google/common/io/
DCloser.java167 Class<X> declaredType) throws IOException, X { in rethrow() argument
171 Throwables.propagateIfPossible(e, declaredType); in rethrow()