Package com.google.common.reflect
Class TypeResolver.TypeTable
java.lang.Object
com.google.common.reflect.TypeResolver.TypeTable
- Enclosing class:
TypeResolver
A TypeTable maintains mapping from
TypeVariable
to types.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
private
-
Method Summary
Modifier and TypeMethodDescription(package private) final Type
resolve
(TypeVariable<?> var) (package private) Type
resolveInternal
(TypeVariable<?> var, TypeResolver.TypeTable forDependants) Resolvesvar
using the encapsulated type mapping.(package private) final TypeResolver.TypeTable
where
(Map<TypeResolver.TypeVariableKey, ? extends Type> mappings) Returns a newTypeResolver
withvariable
mapping totype
.
-
Field Details
-
map
-
-
Constructor Details
-
TypeTable
TypeTable() -
TypeTable
-
-
Method Details
-
where
Returns a newTypeResolver
withvariable
mapping totype
. -
resolve
-
resolveInternal
Resolvesvar
using the encapsulated type mapping. If it maps to yet another non-reified type or has bounds,forDependants
is used to do further resolution, which doesn't try to resolve any type variable on generic declarations that are already being resolved.Should only be called and overridden by
resolve(TypeVariable)
.
-