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()
Type
resolveType(GenericArrayType type)
Type
resolveType(ParameterizedType type)
Resolves a given parameterized type.Type
resolveType(Type type)
Type
resolveType(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 theresolvedTypeVariables
map.
-
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 newParameterizedType
instance is returned in which each type variable is resolved usingresolveType(TypeVariable)
.
-
resolveType
public Type resolveType(GenericArrayType type)
-
getResolvedTypeVariables
public Map<TypeVariable<?>,Type> getResolvedTypeVariables()
-
-