package sun.reflect.generics.factory;
Factory for reflective generic type objects for use by
core reflection (java.lang.reflect).
Factory for this class. Returns an instance of
CoreReflectionFactory for the declaration and scope
provided.
This factory will produce reflective objects of the appropriate
kind. Classes produced will be those that would be loaded by the
defining class loader of the declaration
d (if
d
is a type declaration, or by the defining loader of the declaring
class of
d otherwise.
Type variables will be created or lookup as necessary in the
scope s.
- Parameters:
d - the generic declaration (class, interface, method or
constructor) that thsi factory servicess the scope in which the factory will allocate and search for
type variables- Returns:
- an instance of CoreReflectionFactory
return TypeVariableImpl.make(getDecl(), name, bounds, this);
return WildcardTypeImpl.make(ubs, lbs, this);
return ParameterizedTypeImpl.make((Class<?>) declaration,
try {return Class.forName(name, false, return GenericArrayTypeImpl.make(componentType);