Modifier Class

Definition

The Modifier class provides static methods and constants to decode class and member access modifiers.

[Android.Runtime.Register("java/lang/reflect/Modifier", DoNotGenerateAcw=true)]
public class Modifier : Java.Lang.Object
[<Android.Runtime.Register("java/lang/reflect/Modifier", DoNotGenerateAcw=true)>]
type Modifier = class
    inherit Object
Inheritance
Modifier
Attributes

Remarks

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 <cite>The Java&trade; Virtual Machine Specification</cite>.

Java documentation for java.lang.reflect.Modifier.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Modifier()

Constructs a new Modifier instance.

Modifier(IntPtr, JniHandleOwnership)

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

Fields

Abstract

The int value representing the abstract modifier.

Final

The int value representing the final modifier.

Interface

The int value representing the interface modifier.

Native

The int value representing the native modifier.

Private

The int value representing the private modifier.

Protected

The int value representing the protected modifier.

Public

The int value representing the public modifier.

Static

The int value representing the static modifier.

Strict

The int value representing the strictfp modifier.

Synchronized

The int value representing the synchronized modifier.

Transient

The int value representing the transient modifier.

Volatile

The int value representing the volatile modifier.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

ClassModifiers()

Return an int value OR-ing together the source language modifiers that can be applied to a class.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
ConstructorModifiers()

Return an int value OR-ing together the source language modifiers that can be applied to a constructor.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
FieldModifiers()

Return an int value OR-ing together the source language modifiers that can be applied to a field.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
InterfaceModifiers()

Return an int value OR-ing together the source language modifiers that can be applied to an interface.

IsAbstract(Int32)

Return true if the integer argument includes the abstract modifier, false otherwise.

IsFinal(Int32)

Return true if the integer argument includes the final modifier, false otherwise.

IsInterface(Int32)

Return true if the integer argument includes the interface modifier, false otherwise.

IsNative(Int32)

Return true if the integer argument includes the native modifier, false otherwise.

IsPrivate(Int32)

Return true if the integer argument includes the private modifier, false otherwise.

IsProtected(Int32)

Return true if the integer argument includes the protected modifier, false otherwise.

IsPublic(Int32)

Return true if the integer argument includes the public modifier, false otherwise.

IsStatic(Int32)

Return true if the integer argument includes the static modifier, false otherwise.

IsStrict(Int32)

Return true if the integer argument includes the strictfp modifier, false otherwise.

IsSynchronized(Int32)

Return true if the integer argument includes the synchronized modifier, false otherwise.

IsTransient(Int32)

Return true if the integer argument includes the transient modifier, false otherwise.

IsVolatile(Int32)

Return true if the integer argument includes the volatile modifier, false otherwise.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
MethodModifiers()

Return an int value OR-ing together the source language modifiers that can be applied to a method.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
ParameterModifiers()

Return an int value OR-ing together the source language modifiers that can be applied to a parameter.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
ToString(Int32)

Return a string describing the access modifier flags in the specified modifier.

UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to