Method getModifiers()
Return type: int
Member of: java.lang.reflect.Constructor
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 assertTrue ("It is public", (c.getModifiers() & java.lang.reflect.Modifier.PUBLIC) != 0);
2 this (aConstantPool, aConstructor.getModifiers(), "",
3 assertEquals(true, Modifier.isPublic(cons[0].getModifiers()));
4 assertEquals(true, Modifier.isPublic(cons[0].getModifiers()));
5 int mod = cons.getModifiers();
6 constructor.addModifier( constructors[i].getModifiers() );
7 if (!Modifier.isPublic(ctor.getModifiers())) {
8 if (!Modifier.isPublic(constructor.getModifiers())) {
9 if (Modifier.isPublic(con.getModifiers()) && con.getParameterTypes().length > 0) {
10 int mods = m.getModifiers();
11 modifiers = c.getModifiers();
12 if (!metadata.m_noArgConstructorAccessible && (Modifier.PUBLIC & noArg.getModifiers()) == 0)
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.