private static final class TypeResolver.TypeMappingIntrospector extends TypeVisitor
Modifier and Type | Field and Description |
---|---|
private java.util.Map<TypeResolver.TypeVariableKey,java.lang.reflect.Type> |
mappings |
private static TypeResolver.WildcardCapturer |
wildcardCapturer |
Modifier | Constructor and Description |
---|---|
private |
TypeMappingIntrospector() |
Modifier and Type | Method and 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 of
contextClass . |
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) |
visit, visitGenericArrayType
private static final TypeResolver.WildcardCapturer wildcardCapturer
private final java.util.Map<TypeResolver.TypeVariableKey,java.lang.reflect.Type> mappings
static ImmutableMap<TypeResolver.TypeVariableKey,java.lang.reflect.Type> getTypeMappings(java.lang.reflect.Type contextType)
contextClass
.void visitClass(java.lang.Class<?> clazz)
visitClass
in class TypeVisitor
void visitParameterizedType(java.lang.reflect.ParameterizedType parameterizedType)
visitParameterizedType
in class TypeVisitor
void visitTypeVariable(java.lang.reflect.TypeVariable<?> t)
visitTypeVariable
in class TypeVisitor
void visitWildcardType(java.lang.reflect.WildcardType t)
visitWildcardType
in class TypeVisitor
private void map(TypeResolver.TypeVariableKey var, java.lang.reflect.Type arg)