Package com.google.common.reflect
Class TypeResolver.TypeMappingIntrospector
- java.lang.Object
-
- com.google.common.reflect.TypeVisitor
-
- com.google.common.reflect.TypeResolver.TypeMappingIntrospector
-
- Enclosing class:
- TypeResolver
private static final class TypeResolver.TypeMappingIntrospector extends TypeVisitor
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<TypeResolver.TypeVariableKey,java.lang.reflect.Type>
mappings
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeMappingIntrospector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static ImmutableMap<TypeResolver.TypeVariableKey,java.lang.reflect.Type>
getTypeMappings(java.lang.reflect.Type contextType)
Returns type mappings using type parameters and type arguments found in the generic superclass and the super interfaces ofcontextClass
.private void
map(TypeResolver.TypeVariableKey var, java.lang.reflect.Type arg)
(package private) void
visitClass(java.lang.Class<?> clazz)
(package private) void
visitParameterizedType(java.lang.reflect.ParameterizedType parameterizedType)
(package private) void
visitTypeVariable(java.lang.reflect.TypeVariable<?> t)
(package private) void
visitWildcardType(java.lang.reflect.WildcardType t)
-
Methods inherited from class com.google.common.reflect.TypeVisitor
visit, visitGenericArrayType
-
-
-
-
Field Detail
-
mappings
private final java.util.Map<TypeResolver.TypeVariableKey,java.lang.reflect.Type> mappings
-
-
Method Detail
-
getTypeMappings
static ImmutableMap<TypeResolver.TypeVariableKey,java.lang.reflect.Type> getTypeMappings(java.lang.reflect.Type contextType)
Returns type mappings using type parameters and type arguments found in the generic superclass and the super interfaces ofcontextClass
.
-
visitClass
void visitClass(java.lang.Class<?> clazz)
- Overrides:
visitClass
in classTypeVisitor
-
visitParameterizedType
void visitParameterizedType(java.lang.reflect.ParameterizedType parameterizedType)
- Overrides:
visitParameterizedType
in classTypeVisitor
-
visitTypeVariable
void visitTypeVariable(java.lang.reflect.TypeVariable<?> t)
- Overrides:
visitTypeVariable
in classTypeVisitor
-
visitWildcardType
void visitWildcardType(java.lang.reflect.WildcardType t)
- Overrides:
visitWildcardType
in classTypeVisitor
-
map
private void map(TypeResolver.TypeVariableKey var, java.lang.reflect.Type arg)
-
-