Field PUBLIC
Field type: int
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 return ( _modifiers & Modifier.PUBLIC ) != 0;
2 assertTrue ("It is public", (c.getModifiers() & java.lang.reflect.Modifier.PUBLIC) != 0);
3 if (JUnitSettings.getDefault().isMembersPublic()) cfg_MethodsFilter |= Modifier.PUBLIC;
4 addModifier( Modifier.PUBLIC );
5 int modifiers = Modifier.PUBLIC;
6 int modifiers = Modifier.PUBLIC;
7 if((clazz.getModifiers() & Modifier.PUBLIC) != 0)
8 mModifiers = new AccessFlags(Modifier.PUBLIC);
9 if ((field.getModifiers() & Modifier.PUBLIC) == 0 || (field.getModifiers() & Modifier.STATIC) == 0 || (field.getModifiers() & Modifier.FINAL) == 0) {
10 if (!accessible && ((Modifier.PUBLIC & modifiers) == 0))
11 if((fields[i].getModifiers() & Modifier.PUBLIC) != 0 &&
12 if((clazz.getModifiers() & Modifier.PUBLIC) != 0)
13 if ((field.getModifiers() & Modifier.PUBLIC) == 1) {
14 Modifier.PUBLIC |
15 if ((methods[m].getModifiers()&Modifier.PUBLIC)==0)
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.