Top Description Constructors Methods
org.hibernate.annotations.common.reflection.java.generics

public final Class TypeEnvironmentFactory

extends Object
Class Inheritance
Imports
java.lang.reflect.ParameterizedType, .Type, .TypeVariable

Returns the type context for a given Class or ParameterizedType.

Does not support bindings involving inner classes, nor upper/lower bounds.

Authors
Davide Marchignoli, Paolo Perrotta

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static TypeEnvironment
private static TypeEnvironment
private static TypeEnvironment
public static TypeEnvironment

Returns:

Returns a type environment suitable for resolving types occurring in subclasses of the context class.
getEnvironment
(Class<T> context)

public static TypeEnvironment
public static TypeEnvironment
public static TypeEnvironment
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TypeEnvironmentFactoryback to summary
private TypeEnvironmentFactory()

Method Detail

createEnvironmentback to summary
private static TypeEnvironment createEnvironment(Type context)
createEnvironmentback to summary
private static TypeEnvironment createEnvironment(ParameterizedType t)
createSuperTypeEnvironmentback to summary
private static TypeEnvironment createSuperTypeEnvironment(Class<T> clazz)
getEnvironmentback to summary
public static TypeEnvironment getEnvironment(Class<T> context)
Returns:TypeEnvironment

Returns a type environment suitable for resolving types occurring in subclasses of the context class.

getEnvironmentback to summary
public static TypeEnvironment getEnvironment(Type context)
getEnvironmentback to summary
public static TypeEnvironment getEnvironment(Type t, TypeEnvironment context)
toApproximatingEnvironmentback to summary
public static TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)