| 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 strict 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Indicates whether or not the specified modifiers contain the
abstract modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
final modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
interface modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
native modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
private modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
protected modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
public modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
static modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
strict modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
synchronized modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
transient modifier. | |||||||||||
Indicates whether or not the specified modifiers contain the
volatile modifier. | |||||||||||
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 strict modifier.
The int value representing the synchronized
modifier.
The int value representing the transient
modifier.
The int value representing the volatile
modifier.
Indicates whether or not the specified modifiers contain the abstract modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the abstract modifier, false otherwise
Indicates whether or not the specified modifiers contain the final modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the final modifier, false otherwise
Indicates whether or not the specified modifiers contain the interface modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the interface modifier, false otherwise
Indicates whether or not the specified modifiers contain the native modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the native modifier, false otherwise
Indicates whether or not the specified modifiers contain the private modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the private modifier, false otherwise
Indicates whether or not the specified modifiers contain the protected modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the protected modifier, false otherwise
Indicates whether or not the specified modifiers contain the public modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the public modifier, false otherwise
Indicates whether or not the specified modifiers contain the static modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the static modifier, false otherwise
Indicates whether or not the specified modifiers contain the strict modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the strict modifier, false otherwise
Indicates whether or not the specified modifiers contain the synchronized modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the synchronized modifier, false otherwise
Indicates whether or not the specified modifiers contain the transient modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the transient modifier, false otherwise
Indicates whether or not the specified modifiers contain the volatile modifier.
| modifiers | the modifiers to test |
|---|
true if the specified modifiers contain the volatile modifier, false otherwise
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:
public private protected abstract static final transient volatile native synchronized interface strict
| modifiers | the modifiers to print |
|---|