Searched refs:mods (Results 1 – 5 of 5) sorted by relevance
87 int mods, // actual member mods in isMemberAccessible() argument101 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()
549 private static int fixmods(int mods) { in fixmods() argument550 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() argument1587 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 …]
290 int mods = 0; in test_getModifiers() local295 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 …]
1358 int mods = cons.getModifiers(); in getSerializableConstructor() local1359 if ((mods & Modifier.PRIVATE) != 0 || in getSerializableConstructor()1360 ((mods & (Modifier.PUBLIC | Modifier.PROTECTED)) == 0 && in getSerializableConstructor()1400 int mods = meth.getModifiers(); in getInheritableMethod() local1401 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() local1426 ((mods & Modifier.STATIC) == 0) && in getPrivateMethod()1427 ((mods & Modifier.PRIVATE) != 0)) ? meth : null; in getPrivateMethod()[all …]
362 final int mods = parameter.getModifiers(); in verifyParameters() local372 if (mods != (mods & mask)) { in verifyParameters()