Package org.jboss.weld.util.reflection
Class TypeResolver
- java.lang.Object
-
- org.jboss.weld.util.reflection.TypeResolver
-
public class TypeResolver extends Object
-
-
Constructor Summary
Constructors Constructor Description TypeResolver(Map<TypeVariable<?>,Type> resolvedTypeVariables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<TypeVariable<?>,Type>getResolvedTypeVariables()TyperesolveType(GenericArrayType type)TyperesolveType(ParameterizedType type)Resolves a given parameterized type.TyperesolveType(Type type)TyperesolveType(TypeVariable<?> variable)Resolves a given type variable.
-
-
-
Constructor Detail
-
TypeResolver
public TypeResolver(Map<TypeVariable<?>,Type> resolvedTypeVariables)
-
-
Method Detail
-
resolveType
public Type resolveType(TypeVariable<?> variable)
Resolves a given type variable. This is achieved by a lookup in theresolvedTypeVariablesmap.
-
resolveType
public Type resolveType(ParameterizedType type)
Resolves a given parameterized type. If the parameterized type contains no type variables it is returned untouched. Otherwise, a newParameterizedTypeinstance is returned in which each type variable is resolved usingresolveType(TypeVariable).
-
resolveType
public Type resolveType(GenericArrayType type)
-
getResolvedTypeVariables
public Map<TypeVariable<?>,Type> getResolvedTypeVariables()
-
-