Microsoft SDK for Java

IRemoteField::
GetModifiers

The GetModifiers method of the IRemoteField interface returns a bitmask of flags from the FIELDMODIFIERS enumeration describing the modifiers of this field.

Syntax

HRESULT GetModifiers(ULONG *pulModifiers)

Parameters

[out] pulModifiers Returns a bitmask of flags describing the modifiers of this field.

Return Value

S_OK Success.

Remarks

The modifier bit flags are the same as those used in the access_flags field of the class file header. The modifier bit flags are defined in the FIELDMODIFIERS enumeration shown as follows:

FIELDMODIFIERS enum: FIELD_ACC_PUBLIC

Value: 0x0001

Description: Accessible from outside its package. This modifier can be applied to a class, field, inner class, interface, or method.

FIELDMODIFIERS enum: FIELD_ACC_PRIVATE

Value: 0x0002

Description: Accessible only within the defining class. This modifier can be applied to a field, inner class, or method.

FIELDMODIFIERS enum: FIELD_ACC_PROTECTED

Value: 0x0004

Description: Accessible only within this class and its subclasses. This modifier can be applied to a field, inner class, or method.

FIELDMODIFIERS enum: FIELD_ACC_STATIC

Value: 0x0008

Description: Accessible without an object reference. This modifier can be applied to a field, inner class, or method.

FIELDMODIFIERS enum: FIELD_ACC_FINAL

Value: 0x0010

Description: No subclassing from or assignment to is allowed. This modifier can be applied to any class, field, inner class, or method.

FIELDMODIFIERS enum: FIELD_ACC_SYNCHRONIZED

Value: 0x0020

Description: An object monitor lock is entered during a call to this method. This modifier can be applied to a method.

FIELDMODIFIERS enum: FIELD_ACC_VOLATILE

Value: 0x0040

Description: The value of this field cannot be cached. This modifier can be applied to a field.

FIELDMODIFIERS enum: FIELD_ACC_TRANSIENT

Value: 0x0080

Description: This field cannot be read or written by a persistent object manager. This modifier can be applied to a field.

FIELDMODIFIERS enum: FIELD_ACC_NATIVE

Value: 0x0100

Description: This method is implemented using native code. This modifier can be applied to a method.

FIELDMODIFIERS enum: FIELD_ACC_INTERFACE

Value: 0x0200

Description: This is an interface, not a class. This modifier is applied to an interface.

FIELDMODIFIERS enum: FIELD_ACC_ABSTRACT

Value: 0x0400

Description: This class or interface can not be instantiated. This modifier can be applied to a class, inner class, interface, or method.

FIELDMODIFIERS enum: FIELD_ACC_SUPER

Value: 0x0800

Description: Superclass methods are treated specially by the invokespecial bytecode instruction (used for backward compatibility). This modifier can be applied to a class, inner class, or interface.

FIELDMODIFIERS enum: FIELD_ACC_SYNTHETIC

Value: 0x1000

Description: Invented by the compiler. This modifier can be applied to an inner class.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.