< prev index next >
src/java.base/share/classes/sun/reflect/generics/factory/CoreReflectionFactory.java
Print this page
*** 68,91 ****
}
/**
* Factory for this class. Returns an instance of
! * <tt>CoreReflectionFactory</tt> 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 <tt>d</tt> (if <tt>d</tt>
* is a type declaration, or by the defining loader of the declaring
! * class of <tt>d</tt> otherwise.
* <p> Type variables will be created or lookup as necessary in the
! * scope <tt> s</tt>.
* @param d - the generic declaration (class, interface, method or
* constructor) that this factory services
* @param s the scope in which the factory will allocate and search for
* type variables
! * @return an instance of <tt>CoreReflectionFactory</tt>
*/
public static CoreReflectionFactory make(GenericDeclaration d, Scope s) {
return new CoreReflectionFactory(d, s);
}
--- 68,91 ----
}
/**
* Factory for this class. Returns an instance of
! * {@code 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 {@code d} (if {@code d}
* is a type declaration, or by the defining loader of the declaring
! * class of {@code d} otherwise.
* <p> Type variables will be created or lookup as necessary in the
! * scope {@code s}.
* @param d - the generic declaration (class, interface, method or
* constructor) that this factory services
* @param s the scope in which the factory will allocate and search for
* type variables
! * @return an instance of {@code CoreReflectionFactory}
*/
public static CoreReflectionFactory make(GenericDeclaration d, Scope s) {
return new CoreReflectionFactory(d, s);
}
< prev index next >