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

public 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
public

Method Summary

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

Returns:

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

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

Constructor Detail

TypeEnvironmentFactoryback to summary
public TypeEnvironmentFactory()

Method Detail

createEnvironmentback to summary
private TypeEnvironment createEnvironment(Type context)
createEnvironmentback to summary
private TypeEnvironment createEnvironment(ParameterizedType t)
createSuperTypeEnvironmentback to summary
private TypeEnvironment createSuperTypeEnvironment(Class<T> clazz)
getEnvironmentback to summary
public 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 TypeEnvironment getEnvironment(Type context)
getEnvironmentback to summary
public TypeEnvironment getEnvironment(Type t, TypeEnvironment context)
toApproximatingEnvironmentback to summary
public TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)