edu.mit.ai.psg.jevaES
Class AccessibilityMethods
java.lang.Object
|
+--edu.mit.ai.psg.jevaES.AccessibilityMethods
- public class AccessibilityMethods
- extends Object
AccessibilityMethods --- methods for checking whether
IllegalAccessException should be thrown.
- Author:
- CarlManning, caroma@ai.mit.edu
Copyright (c) 1999 Massachusetts Institute of Technology
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
isAccessibleFromPackage
public static boolean isAccessibleFromPackage(Member member,
String packageName)
- Check whether member (field, method, constructor) is accessible from
package, i.e., an unrelated class in package packageName. If not,
attempting to access the member from the package should
throw IllegalAccessException
isAccessibleFromPackage
public static boolean isAccessibleFromPackage(Class memberClass,
String packageName)