Function and Structure will use this interface to determine
how to map a given Java object into a native type.Implementations of this interface must provide a no-args constructor.
See ToNativeConverter for a list of allowable native types.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: Converted object.Java representation of the native type to be converted. nativeValue, FromNativeContext Context in which the conversion is taking place. context)Convert the given native object into its Java representation using the given context. |
| public Class | Returns: Java class representation of the native type.Indicate the native type used by this converter. |
| public Object | Returns: Java representation of the original Java object converted to a native type.Convert this object into a supported native type. |
| fromNative | back to summary |
|---|---|
| public Object fromNative(Object nativeValue, FromNativeContext context) Convert the given native object into its Java representation using the given context.
| |
| nativeType | back to summary |
|---|---|
| public Class Indicate the native type used by this converter.
| |
| toNative | back to summary |
|---|---|
| public Object toNative() Convert this object into a supported native type.
| |