public final class OCamlWrappers extends java.lang.Object
OCamlWrappers provides utility methods related to wrappers.| Modifier and Type | Method and Description |
|---|---|
static boolean |
asBool(org.ocamljava.runtime.values.Value v)
Converts a value into a
boolean. |
static org.ocamljava.runtime.values.Value |
createBool(boolean b)
Returns a value representing a boolean.
|
static org.ocamljava.runtime.values.Value |
createClosure(java.lang.Class<?> clazz,
java.lang.String method,
java.lang.Object thiz,
int arity)
Constructs and return a new closure for a Java virtual method.
|
static org.ocamljava.runtime.values.Value |
getAndIncrementOid() |
public static boolean asBool(org.ocamljava.runtime.values.Value v)
boolean.v - value to convert - should not be nullbooleanpublic static org.ocamljava.runtime.values.Value createBool(boolean b)
b - boolean value to representpublic static org.ocamljava.runtime.values.Value getAndIncrementOid()
public static org.ocamljava.runtime.values.Value createClosure(java.lang.Class<?> clazz, java.lang.String method, java.lang.Object thiz, int arity)
clazz - method class - should not be nullmethod - method name - should not be nullthiz - target instance - should not be nullarity - method arity