Home
last modified time | relevance | path

Searched refs:allowedModes (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java89 int allowedModes) { in isMemberAccessible() argument
90 if (allowedModes == 0) return false; in isMemberAccessible()
91 assert((allowedModes & PUBLIC) != 0 && in isMemberAccessible()
92 (allowedModes & ~(ALL_ACCESS_MODES|PACKAGE_ALLOWED)) == 0); in isMemberAccessible()
94 if (!isClassAccessible(refc, lookupClass, allowedModes)) { in isMemberAccessible()
99 (allowedModes & PRIVATE) != 0) in isMemberAccessible()
106 if ((allowedModes & PROTECTED_OR_PACKAGE_ALLOWED) != 0 && in isMemberAccessible()
109 if ((allowedModes & PROTECTED) == 0) in isMemberAccessible()
117 if ((allowedModes & PROTECTED) != 0 && in isMemberAccessible()
123 return ((allowedModes & PACKAGE_ALLOWED) != 0 && in isMemberAccessible()
[all …]
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java512 private final int allowedModes; field in MethodHandles.Lookup
587 return allowedModes & ALL_MODES; in lookupModes()
601 private Lookup(Class<?> lookupClass, int allowedModes) { in Lookup() argument
603 this.allowedModes = allowedModes; in Lookup()
638 int newModes = (allowedModes & (ALL_MODES & ~PROTECTED)); in in()
649 … && !VerifyAccess.isClassAccessible(requestedLookupClass, this.lookupClass, allowedModes)) { in in()
672 private static void checkUnprivilegedlookupClass(Class<?> lookupClass, int allowedModes) { in checkUnprivilegedlookupClass() argument
681 if (allowedModes == ALL_MODES && in checkUnprivilegedlookupClass()
723 switch (allowedModes) { in toString()
738 cname = cname + "/" + Integer.toHexString(allowedModes); in toString()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java370 private Lookup(java.lang.Class<?> lookupClass, int allowedModes) { in Lookup() argument
391 java.lang.Class<?> lookupClass, int allowedModes) { in checkUnprivilegedlookupClass() argument
628 private final int allowedModes; field in MethodHandles.Lookup
631 allowedModes = 0;