Lines Matching refs:refc

61      * to the member ({@code refc}).  If this latter class is not distinguished,
62 * the defining class should be passed for both arguments ({@code defc == refc}).
82 * @param refc the class used in the symbolic reference to the proposed member
88 public static boolean isMemberAccessible(Class<?> refc, // symbolic ref class
96 // The symbolic reference class (refc) must always be fully verified.
97 if (!isClassAccessible(refc, lookupClass, allowedModes)) {
100 // Usually refc and defc are the same, but verify defc also in case they differ.
118 !isRelatedClass(refc, lookupClass))
138 static boolean isRelatedClass(Class<?> refc, Class<?> lookupClass) {
139 return (refc == lookupClass ||
140 isSubClass(refc, lookupClass) ||
141 isSubClass(lookupClass, refc));
169 * @param refc the symbolic reference class to which access is being checked (C)
172 public static boolean isClassAccessible(Class<?> refc, Class<?> lookupClass,
177 int mods = getClassModifiers(refc);
181 Module refModule = refc.getModule();
198 // check that refc is in an exported package
200 if (refModule.isExported(refc.getPackageName(), lookupModule))
204 if (refModule.isExported(refc.getPackageName()))
218 isSamePackage(lookupClass, refc))
226 * @param type the supposed type of a member or symbolic reference of refc
227 * @param refc the class attempting to make the reference
229 public static boolean isTypeVisible(Class<?> type, Class<?> refc) {
230 if (type == refc) {
238 ClassLoader refcLoader = refc.getClassLoader();
252 // Do it the hard way: Look up the type name from the refc loader.
254 // Force the refc loader to report and commit to a particular binding for this type name (type.getName()).
295 * @param type the supposed type of a member or symbolic reference of refc
296 * @param refc the class attempting to make the reference
298 public static boolean isTypeVisible(java.lang.invoke.MethodType type, Class<?> refc) {
301 if (!isTypeVisible(ptype, refc))