public class TypeMapping
extends java.lang.Object
| Constructor and Description |
|---|
TypeMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(java.lang.reflect.TypeVariable<?> typeVariable,
java.lang.reflect.Type type)
Add a mapping from a TypeVariable to an actual type.
|
java.lang.reflect.Type |
getActualType(java.lang.reflect.Type type)
Return the actual type of the supplied formal type.
|
java.lang.Class<?> |
getRawType(java.lang.reflect.Type type)
Return the raw type of the supplied formal type.
|
public void addMapping(java.lang.reflect.TypeVariable<?> typeVariable,
java.lang.reflect.Type type)
typeVariable - the formal type variabletype - the actual type it maps topublic java.lang.reflect.Type getActualType(java.lang.reflect.Type type)
type - the formal type parameterpublic java.lang.Class<?> getRawType(java.lang.reflect.Type type)
type - the formal type parameter