Module java.base

Class Modifier

java.lang.Object
java.lang.reflect.Modifier

public class Modifier extends Object
The Modifier class provides static methods and constants to decode class and member access modifiers. The sets of modifiers are represented as integers with distinct bit positions representing different modifiers. The values for the constants representing the modifiers are taken from the tables in sections 4.1, 4.4, 4.5, and 4.7 of The Java Virtual Machine Specification.
API Note:
Not all modifiers that are syntactic Java language modifiers are represented in this class, only those modifiers that also have a corresponding JVM access flag are included. In particular the default method modifier (JLS 9.4.3) and the sealed and non-sealed class (JLS 8.1.1.2) and interface (JLS 9.1.1.4) modifiers are not represented in this class.
Since:
1.1
See Also: