The FieldInformation method of the IJavaEventMonitorIDInfo2 interface is called by a profiler to retrieve information about a field in a class. The profiler must pass the FieldID it is interested in.
The FieldInformation method is implemented only by the IJavaEventMonitorIDInfo2 and IJavaEventMonitorIDInfo3 interfaces.
HRESULT FieldInformation(FieldID field_id, LPSTR *pname, DWORD *pflags);
A pointer to the name of the field and a bitmask of flags from the JAVA_FIELD_FLAGS enumeration representing access modifiers.
[in] field_id | The FieldID of the class the profiler is interested in. |
[out] *pname | The UTF-8 string name of the field taken directly from the constant pool of the class file, unmodified. |
[out] *pflags | A bitmask of flags from JAVA_FIELD_FLAGS. |
The possible field flags can be a combination of the JAVA_FIELD_FLAGS types or the last predefined combined type as defined in the JAVA_STATE_FLAGS enumeration.
Constant | Value | Description |
JVM_FIELD_STATIC | 1 | This is a static field. |
JVM_FIELD_OBJECTREF | 2 | This field contains an object reference or an array, not a Java primitive type. |
ALL_JVM_FIELD_FLAGS | 3 | A combination of all the previous flags. |
Constant | Value | Description |
JVM_STATE_INTERPRETER_ENABLED | 0x1 | The Java interpreter is enabled. |
JVM_STATE_FAST_INTERPRETER_ENABLED | 0x2 | The fast interpreter is enabled. |
JVM_STATE_JIT_COMPILER_ENABLED | 0x4 | The JIT-compiler is enabled. |
JVM_STATE_DEBUGGER_ENABLED | 0x8 | The debugger is enabled. |
ALL_JVM_FLAGS | 0xF | All the previous flags are enabled. |