Class.getModifiers

Class.getModifiers

Class Overview | Class Members | This Package | All Packages

Syntax
public native int getModifiers()
Description
Returns the Java language modifiers for this class or interface, encoded in an integer. The modifiers consist of the Java Virtual Machine's constants for public, protected, private, final, and interface; they should be decoded using the methods of class Modifier.

The modifier encodings are defined in The Java Virtual Machine Specification, table 4.1.

See Also
Modifier