Lines Matching refs:runtimeType

97   private final Type runtimeType;
99 /** Resolver for resolving types with {@link #runtimeType} as context. */
113 this.runtimeType = capture();
114 checkState(!(runtimeType instanceof TypeVariable),
119 "please use TypeToken.of() instead.", runtimeType);
142 this.runtimeType = captured;
144 this.runtimeType = of(declaringClass).resolveType(captured).runtimeType;
149 this.runtimeType = checkNotNull(type);
177 Class<?> rawType = getRawType(runtimeType);
190 ImmutableSet<Class<? super T>> result = (ImmutableSet) getRawTypes(runtimeType);
196 return runtimeType;
218 typeArg.runtimeType));
220 return new SimpleTypeToken<T>(resolver.resolveType(runtimeType));
253 resolver = (typeResolver = TypeResolver.accordingTo(runtimeType));
287 if (runtimeType instanceof TypeVariable) {
289 return boundAsSuperclass(((TypeVariable<?>) runtimeType).getBounds()[0]);
291 if (runtimeType instanceof WildcardType) {
293 return boundAsSuperclass(((WildcardType) runtimeType).getUpperBounds()[0]);
327 if (runtimeType instanceof TypeVariable) {
328 return boundsAsInterfaces(((TypeVariable<?>) runtimeType).getBounds());
330 if (runtimeType instanceof WildcardType) {
331 return boundsAsInterfaces(((WildcardType) runtimeType).getUpperBounds());
378 if (runtimeType instanceof TypeVariable) {
379 return getSupertypeFromUpperBounds(superclass, ((TypeVariable<?>) runtimeType).getBounds());
381 if (runtimeType instanceof WildcardType) {
382 return getSupertypeFromUpperBounds(superclass, ((WildcardType) runtimeType).getUpperBounds());
389 resolveSupertype(toGenericType(superclass).runtimeType);
399 checkArgument(!(runtimeType instanceof TypeVariable),
401 if (runtimeType instanceof WildcardType) {
402 return getSubtypeFromLowerBounds(subclass, ((WildcardType) runtimeType).getLowerBounds());
418 return isAssignableFrom(type.runtimeType);
423 return isAssignable(checkNotNull(type), runtimeType);
440 return (runtimeType instanceof Class) && ((Class<?>) runtimeType).isPrimitive();
452 Class<T> type = (Class<T>) runtimeType;
459 return Primitives.allWrapperTypes().contains(runtimeType);
471 Class<T> type = (Class<T>) runtimeType;
482 Type componentType = Types.getComponentType(runtimeType);
684 return !(type.runtimeType instanceof TypeVariable
685 || type.runtimeType instanceof WildcardType);
701 return runtimeType.equals(that.runtimeType);
707 return runtimeType.hashCode();
711 return Types.toString(runtimeType);
718 return of(new TypeResolver().resolveType(runtimeType));
729 runtimeType + "contains a type variable and is not safe for the operation");
742 }.visit(runtimeType);
829 Type fromTypeArg = fromTypeToken.resolveType(typeParams[i]).runtimeType;
956 toGenericType(cls.getComponentType()).runtimeType);
1008 of(newArrayClassOrGenericArrayType(componentSupertype.runtimeType));
1019 of(newArrayClassOrGenericArrayType(componentSubtype.runtimeType));
1024 if (runtimeType instanceof Class) {
1039 .runtimeType;
1040 return new TypeResolver().where(supertypeWithArgsFromSubtype, runtimeType)
1041 .resolveType(genericSubtype.runtimeType);