Method isProtected(int mod)
Return type: boolean
Member of:
java.lang.reflect.Modifier
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
if (Modifier.isPublic(modifiers) || Modifier.isProtected(modifiers)) {
2
} else if (Modifier.isProtected(mods) && !keepProtected()) {
3
Modifier.isPublic(mods) || Modifier.isProtected(mods));
4
else if (Modifier.isProtected(modif))
5
Modifier.isProtected(f.getModifiers())) {
6
Modifier.isProtected(liMod) ||
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.