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 Typeresolve(TypeVariable<?> var) (package private) TyperesolveInternal(TypeVariable<?> var, TypeResolver.TypeTable forDependants) Resolvesvarusing the encapsulated type mapping.(package private) final TypeResolver.TypeTablewhere(Map<TypeResolver.TypeVariableKey, ? extends Type> mappings) Returns a newTypeResolverwithvariablemapping totype.
-
Field Details
-
map
-
-
Constructor Details
-
TypeTable
TypeTable() -
TypeTable
-
-
Method Details
-
where
Returns a newTypeResolverwithvariablemapping totype. -
resolve
-
resolveInternal
Resolvesvarusing the encapsulated type mapping. If it maps to yet another non-reified type or has bounds,forDependantsis 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).
-