Home
last modified time | relevance | path

Searched refs:mods (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/sun/reflect/misc/
DReflectUtil.java62 int mods = modifiers; in ensureMemberAccess() local
63 mods = mods & (~Modifier.PROTECTED); in ensureMemberAccess()
64 mods = mods | Modifier.PUBLIC; in ensureMemberAccess()
72 mods); in ensureMemberAccess()
78 mods = mods & (~Modifier.PUBLIC); in ensureMemberAccess()
82 mods); in ensureMemberAccess()
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java87 int mods, // actual member mods in isMemberAccessible() argument
101 switch (mods & ALL_ACCESS_MODES) { in isMemberAccessible()
114 if ((mods & STATIC) != 0 && in isMemberAccessible()
131 throw new IllegalArgumentException("bad modifiers: "+Modifier.toString(mods)); in isMemberAccessible()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DMethodTest.java290 int mods = 0; in test_getModifiers() local
295 mods = mth.getModifiers(); in test_getModifiers()
300 assertTrue("Incorrect modifiers returned", (mods | mask) == mask); in test_getModifiers()
303 mods = mth.getModifiers(); in test_getModifiers()
308 assertTrue("Incorrect modifiers returned", (mods | mask) == mask); in test_getModifiers()
311 mods = mth.getModifiers(); in test_getModifiers()
316 assertTrue("Incorrect modifiers returned", (mods | mask) == mask); in test_getModifiers()
319 mods = mth.getModifiers(); in test_getModifiers()
325 assertTrue("Incorrect modifiers returned", (mods | mask) == mask); in test_getModifiers()
329 mods = mth.getModifiers(); in test_getModifiers()
[all …]
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java550 private static int fixmods(int mods) { in fixmods() argument
551 mods &= (ALL_MODES - PACKAGE); in fixmods()
552 return (mods != 0) ? mods : PACKAGE; in fixmods()
1872 void checkAccess(Class<?> refc, Class<?> defc, int mods, String methName) in checkAccess() argument
1876 if (Modifier.isProtected(mods) && in checkAccess()
1893 mods ^= Modifier.PROTECTED | Modifier.PUBLIC; in checkAccess()
1896 if (Modifier.isProtected(mods) && Modifier.isConstructor(mods)) { in checkAccess()
1898 mods ^= Modifier.PROTECTED; in checkAccess()
1901 … if (Modifier.isPublic(mods) && Modifier.isPublic(refc.getModifiers()) && allowedModes != 0) in checkAccess()
1903 int requestedModes = fixmods(mods); // adjust 0 => PACKAGE in checkAccess()
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1421 int mods = cons.getModifiers(); in getSerializableConstructor() local
1422 if ((mods & Modifier.PRIVATE) != 0 || in getSerializableConstructor()
1423 ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) == 0 && in getSerializableConstructor()
1466 int mods = meth.getModifiers(); in getInheritableMethod() local
1467 if ((mods & (Modifier.STATIC | Modifier.ABSTRACT)) != 0) { in getInheritableMethod()
1469 } else if ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) != 0) { in getInheritableMethod()
1471 } else if ((mods & Modifier.PRIVATE) != 0) { in getInheritableMethod()
1490 int mods = meth.getModifiers(); in getPrivateMethod() local
1492 ((mods & Modifier.STATIC) == 0) && in getPrivateMethod()
1493 ((mods & Modifier.PRIVATE) != 0)) ? meth : null; in getPrivateMethod()
[all …]
/libcore/ojluni/src/main/java/java/lang/reflect/
DExecutable.java365 final int mods = parameter.getModifiers(); in verifyParameters() local
375 if (mods != (mods & mask)) { in verifyParameters()
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java374 private static int fixmods(int mods) { in fixmods() argument
579 int mods, in checkAccess() argument
586 java.lang.Class<?> refc, java.lang.Class<?> defc, int mods) { in accessFailedMessage() argument