Class TypeEnvironmentFactory
- java.lang.Object
-
- org.hibernate.annotations.common.reflection.java.generics.TypeEnvironmentFactory
-
public final class TypeEnvironmentFactory extends Object
Returns the type context for a givenClassorParameterizedType. Does not support bindings involving inner classes, nor upper/lower bounds.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeEnvironmentgetEnvironment(Class context)static TypeEnvironmentgetEnvironment(Type context)static TypeEnvironmentgetEnvironment(Type t, TypeEnvironment context)static TypeEnvironmenttoApproximatingEnvironment(TypeEnvironment context)
-
-
-
Method Detail
-
getEnvironment
public static TypeEnvironment getEnvironment(Class context)
- Returns:
- Returns a type environment suitable for resolving types occurring in subclasses of the context class.
-
getEnvironment
public static TypeEnvironment getEnvironment(Type context)
-
getEnvironment
public static TypeEnvironment getEnvironment(Type t, TypeEnvironment context)
-
toApproximatingEnvironment
public static TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)
-
-