Android Guides | Samples

Java.Lang.Reflect.Modifier Class

This class provides static methods to decode class and member modifiers.

See Also: Modifier

Syntax

[Android.Runtime.Register("java/lang/reflect/Modifier", DoNotGenerateAcw=true)]
public class Modifier : Object

Remarks

This class provides static methods to decode class and member modifiers.

See Also

[Android Documentation]

Requirements

Namespace: Java.Lang.Reflect
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.Reflect.Modifier are listed below.

See Also: Object

Public Constructors

Constructs a new Modifier instance.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
AbstractInt32 (1024). The int value representing the abstract modifier.
const
FinalInt32 (16). The int value representing the final modifier.
const
InterfaceInt32 (512). The int value representing the interface modifier.
const
NativeInt32 (256). The int value representing the native modifier.
const
PrivateInt32 (2). The int value representing the private modifier.
const
ProtectedInt32 (4). The int value representing the protected modifier.
const
PublicInt32 (1). The int value representing the public modifier.
const
StaticInt32 (8). The int value representing the static modifier.
const
StrictInt32 (2048). The int value representing the strictfp modifier.
const
SynchronizedInt32 (32). The int value representing the synchronized modifier.
const
TransientInt32 (128). The int value representing the transient modifier.
const
VolatileInt32 (64). The int value representing the volatile modifier.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
ClassModifiers() : Int32
Returns a mask of all the modifiers that may be applied to classes.
static
ConstructorModifiers() : Int32
Returns a mask of all the modifiers that may be applied to constructors.
static
FieldModifiers() : Int32
Returns a mask of all the modifiers that may be applied to fields.
static
InterfaceModifiers() : Int32
Returns a mask of all the modifiers that may be applied to interfaces.
static
IsAbstract(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Abstract.
static
IsFinal(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Final.
static
IsInterface(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Interface.
static
IsNative(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Native.
static
IsPrivate(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Private.
static
IsProtected(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Protected.
static
IsPublic(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Public.
static
IsStatic(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Static.
static
IsStrict(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Strict.
static
IsSynchronized(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Synchronized.
static
IsTransient(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Transient.
static
IsVolatile(Int32) : Boolean
Returns true if the given modifiers contain Modifier.Volatile.
static
MethodModifiers() : Int32
Returns a mask of all the modifiers that may be applied to methods.
static
ToString(Int32) : String
Returns a string containing the string representation of all modifiers present in the specified modifiers.