Home
last modified time | relevance | path

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

/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/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java549 private static int fixmods(int mods) { in fixmods() argument
550 mods &= (ALL_MODES - PACKAGE); in fixmods()
551 return (mods != 0) ? mods : PACKAGE; in fixmods()
1583 void checkAccess(Class<?> refc, Class<?> defc, int mods, String methName) in checkAccess() argument
1587 if (Modifier.isProtected(mods) && in checkAccess()
1604 mods ^= Modifier.PROTECTED | Modifier.PUBLIC; in checkAccess()
1607 if (Modifier.isProtected(mods) && Modifier.isConstructor(mods)) { in checkAccess()
1609 mods ^= Modifier.PROTECTED; in checkAccess()
1612 … if (Modifier.isPublic(mods) && Modifier.isPublic(refc.getModifiers()) && allowedModes != 0) in checkAccess()
1614 int requestedModes = fixmods(mods); // adjust 0 => PACKAGE in checkAccess()
[all …]
/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/io/
DObjectStreamClass.java1358 int mods = cons.getModifiers(); in getSerializableConstructor() local
1359 if ((mods & Modifier.PRIVATE) != 0 || in getSerializableConstructor()
1360 ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) == 0 && in getSerializableConstructor()
1400 int mods = meth.getModifiers(); in getInheritableMethod() local
1401 if ((mods & (Modifier.STATIC | Modifier.ABSTRACT)) != 0) { in getInheritableMethod()
1403 } else if ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) != 0) { in getInheritableMethod()
1405 } else if ((mods & Modifier.PRIVATE) != 0) { in getInheritableMethod()
1424 int mods = meth.getModifiers(); in getPrivateMethod() local
1426 ((mods & Modifier.STATIC) == 0) && in getPrivateMethod()
1427 ((mods & Modifier.PRIVATE) != 0)) ? meth : null; in getPrivateMethod()
[all …]
/libcore/ojluni/src/main/java/java/lang/reflect/
DExecutable.java362 final int mods = parameter.getModifiers(); in verifyParameters() local
372 if (mods != (mods & mask)) { in verifyParameters()