The GetPrimitiveType method of the IRemotePrimitiveClassField interface returns the Java primitive type of a field if the field is of a Java primitive type.
HRESULT GetPrimitiveType(PRIMITIVE_TYPE *pPrimitiveType)
[out] pPrimitiveType | Returns the type of the Java primitive field. |
S_OK Success.
E_FAIL The field is not of a Java primitive type.
Java primitive types are defined in the PRIMITIVE_TYPE enumeration as shown in the following table.
PRIMITIVE_TYPE enum | Value | Description |
PRIMITIVE_VOID | 1 | Void |
PRIMITIVE_BOOLEAN | 2 | A Java boolean. |
PRIMITIVE_BYTE | 3 | A Java byte. |
PRIMITIVE_CHAR | 4 | A Java char. |
PRIMITIVE_SHORT | 5 | A Java short. |
PRIMITIVE_INT | 6 | A Java integer. |
PRIMITIVE_FLOAT | 7 | A Java float. |
PRIMITIVE_LONG | 8 | A Java long. |
PRIMITIVE_DOUBLE | 9 | A Java double. |