public interface Wrapper<T extends OCamlValue>
Wrapper
interface defines the contract for a class
allowing to wrap a Value
(internal type of OCaml values) into a
org.ocamljava.runtime.wrappers
(allowing easy access and
manipulation from Java code).Value
,
OCamlValue
Modifier and Type | Method and Description |
---|---|
Wrapper<? extends OCamlValue> |
getWrapper(int idx)
Returns the wrapper used to wrap
Value elements into
instances of the embedded type at given index. |
T |
wrap(org.ocamljava.runtime.values.Value v)
Wraps an internal value into an OCamlValue.
|
T wrap(org.ocamljava.runtime.values.Value v)
v
- value to wrap - should not be null
v
Wrapper<? extends OCamlValue> getWrapper(int idx)
Value
elements into
instances of the embedded type at given index.idx
- index of embedded typeValue
elements into
instances of the embedded type at given index