public class Modifier extends Object
Class.getModifiers(),
Member.getModifiers()| Modifier and Type | Field and Description |
|---|---|
static int |
ABSTRACT
The
int value representing the abstract modifier. |
static int |
CONSTRUCTOR
Dex addition to mark instance constructors and static class
initializer methods.
|
static int |
FINAL
The
int value representing the final modifier. |
static int |
INTERFACE
The
int value representing the interface modifier. |
static int |
MIRANDA
Miranda methods are fabrications to reserve virtual method
table slots in abstract classes that implement interfaces
without declaring the abstract methods that the interface would
require they implement.
|
static int |
NATIVE
The
int value representing the native modifier. |
static int |
PRIVATE
The
int value representing the private modifier. |
static int |
PROTECTED
The
int value representing the protected modifier. |
static int |
PUBLIC
The
int value representing the public modifier. |
static int |
STATIC
The
int value representing the static modifier. |
static int |
STRICT
The
int value representing the strictfp modifier. |
static int |
SYNCHRONIZED
The
int value representing the synchronized modifier. |
static int |
SYNTHETIC |
static int |
TRANSIENT
The
int value representing the transient modifier. |
static int |
VOLATILE
The
int value representing the volatile modifier. |
| Constructor and Description |
|---|
Modifier()
Constructs a new
Modifier instance. |
| Modifier and Type | Method and Description |
|---|---|
static int |
classModifiers()
Returns a mask of all the modifiers that may be applied to classes.
|
static int |
constructorModifiers()
Returns a mask of all the modifiers that may be applied to constructors.
|
static int |
fieldModifiers()
Returns a mask of all the modifiers that may be applied to fields.
|
static int |
interfaceModifiers()
Returns a mask of all the modifiers that may be applied to interfaces.
|
static boolean |
isAbstract(int modifiers)
Returns true if the given modifiers contain
ABSTRACT. |
static boolean |
isConstructor(int modifiers)
Returns true if the given modifiers contain
CONSTRUCTOR. |
static boolean |
isFinal(int modifiers)
Returns true if the given modifiers contain
FINAL. |
static boolean |
isInterface(int modifiers)
Returns true if the given modifiers contain
INTERFACE. |
static boolean |
isNative(int modifiers)
Returns true if the given modifiers contain
NATIVE. |
static boolean |
isPrivate(int modifiers)
Returns true if the given modifiers contain
PRIVATE. |
static boolean |
isProtected(int modifiers)
Returns true if the given modifiers contain
PROTECTED. |
static boolean |
isPublic(int modifiers)
Returns true if the given modifiers contain
PUBLIC. |
static boolean |
isStatic(int modifiers)
Returns true if the given modifiers contain
STATIC. |
static boolean |
isStrict(int modifiers)
Returns true if the given modifiers contain
STRICT. |
static boolean |
isSynchronized(int modifiers)
Returns true if the given modifiers contain
SYNCHRONIZED. |
static boolean |
isTransient(int modifiers)
Returns true if the given modifiers contain
TRANSIENT. |
static boolean |
isVolatile(int modifiers)
Returns true if the given modifiers contain
VOLATILE. |
static int |
methodModifiers()
Returns a mask of all the modifiers that may be applied to methods.
|
static String |
toString(int modifiers)
Returns a string containing the string representation of all modifiers
present in the specified modifiers.
|
public static final int PUBLIC
int value representing the public modifier.public static final int PRIVATE
int value representing the private modifier.public static final int PROTECTED
int value representing the protected modifier.public static final int STATIC
int value representing the static modifier.public static final int FINAL
int value representing the final modifier.public static final int SYNCHRONIZED
int value representing the synchronized modifier.public static final int VOLATILE
int value representing the volatile modifier.public static final int TRANSIENT
int value representing the transient modifier.public static final int NATIVE
int value representing the native modifier.public static final int INTERFACE
int value representing the interface modifier.public static final int ABSTRACT
int value representing the abstract modifier.public static final int STRICT
int value representing the strictfp modifier.public static final int SYNTHETIC
public static final int MIRANDA
public static final int CONSTRUCTOR
public static int classModifiers()
public static int constructorModifiers()
public static int fieldModifiers()
public static int interfaceModifiers()
public static int methodModifiers()
public static boolean isAbstract(int modifiers)
ABSTRACT.public static boolean isFinal(int modifiers)
FINAL.public static boolean isInterface(int modifiers)
INTERFACE.public static boolean isNative(int modifiers)
NATIVE.public static boolean isPrivate(int modifiers)
PRIVATE.public static boolean isProtected(int modifiers)
PROTECTED.public static boolean isPublic(int modifiers)
PUBLIC.public static boolean isStatic(int modifiers)
STATIC.public static boolean isStrict(int modifiers)
STRICT.public static boolean isSynchronized(int modifiers)
SYNCHRONIZED.public static boolean isTransient(int modifiers)
TRANSIENT.public static boolean isVolatile(int modifiers)
VOLATILE.public static boolean isConstructor(int modifiers)
CONSTRUCTOR.public static String toString(int modifiers)