| java.lang.Object | |
| ↳ | java.lang.reflect.Modifier |
This class provides static methods to decode class and member modifiers.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | ABSTRACT | The int value representing the abstract modifier. |
|||||||||
| int | FINAL | The int value representing the final modifier. |
|||||||||
| int | INTERFACE | The int value representing the interface modifier. |
|||||||||
| int | NATIVE | The int value representing the native modifier. |
|||||||||
| int | PRIVATE | The int value representing the private modifier. |
|||||||||
| int | PROTECTED | The int value representing the protected modifier. |
|||||||||
| int | PUBLIC | The int value representing the public modifier. |
|||||||||
| int | STATIC | The int value representing the static modifier. |
|||||||||
| int | STRICT | The int value representing the strictfp modifier. |
|||||||||
| int | SYNCHRONIZED | The int value representing the synchronized modifier. |
|||||||||
| int | TRANSIENT | The int value representing the transient modifier. |
|||||||||
| int | VOLATILE | The int value representing the volatile modifier. |
|||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
Modifier instance. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a mask of all the modifiers that may be applied to classes.
| |||||||||||
Returns a mask of all the modifiers that may be applied to constructors.
| |||||||||||
Returns a mask of all the modifiers that may be applied to fields.
| |||||||||||
Returns a mask of all the modifiers that may be applied to interfaces.
| |||||||||||
Returns true if the given modifiers contain
ABSTRACT. | |||||||||||
Returns true if the given modifiers contain
FINAL. | |||||||||||
Returns true if the given modifiers contain
INTERFACE. | |||||||||||
Returns true if the given modifiers contain
NATIVE. | |||||||||||
Returns true if the given modifiers contain
PRIVATE. | |||||||||||
Returns true if the given modifiers contain
PROTECTED. | |||||||||||
Returns true if the given modifiers contain
PUBLIC. | |||||||||||
Returns true if the given modifiers contain
STATIC. | |||||||||||
Returns true if the given modifiers contain
STRICT. | |||||||||||
Returns true if the given modifiers contain
SYNCHRONIZED. | |||||||||||
Returns true if the given modifiers contain
TRANSIENT. | |||||||||||
Returns true if the given modifiers contain
VOLATILE. | |||||||||||
Returns a mask of all the modifiers that may be applied to methods.
| |||||||||||
Returns a string containing the string representation of all modifiers
present in the specified modifiers.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The int value representing the abstract modifier.
The int value representing the final modifier.
The int value representing the interface modifier.
The int value representing the native modifier.
The int value representing the private modifier.
The int value representing the protected modifier.
The int value representing the public modifier.
The int value representing the static modifier.
The int value representing the strictfp modifier.
The int value representing the synchronized modifier.
The int value representing the transient modifier.
The int value representing the volatile modifier.
Returns a mask of all the modifiers that may be applied to classes.
Returns a mask of all the modifiers that may be applied to constructors.
Returns a mask of all the modifiers that may be applied to fields.
Returns a mask of all the modifiers that may be applied to interfaces.
Returns true if the given modifiers contain ABSTRACT.
Returns true if the given modifiers contain FINAL.
Returns true if the given modifiers contain INTERFACE.
Returns true if the given modifiers contain NATIVE.
Returns true if the given modifiers contain PRIVATE.
Returns true if the given modifiers contain PROTECTED.
Returns true if the given modifiers contain PUBLIC.
Returns true if the given modifiers contain STATIC.
Returns true if the given modifiers contain STRICT.
Returns true if the given modifiers contain SYNCHRONIZED.
Returns true if the given modifiers contain TRANSIENT.
Returns true if the given modifiers contain VOLATILE.
Returns a mask of all the modifiers that may be applied to methods.
Returns a string containing the string representation of all modifiers present in the specified modifiers. Modifiers appear in the order specified by the Java Language Specification.