public abstract class OCamlFunction3<T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,TR extends OCamlValue> extends OCamlValue
OCamlFunction3 class represent an OCaml function taking three
parameter.WRAPPER| Constructor and Description |
|---|
OCamlFunction3()
Constructs a new instance.
|
OCamlFunction3(Wrapper<T0> w0,
Wrapper<T1> w1,
Wrapper<T2> w2,
Wrapper<TR> wr)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
abstract TR |
execute(T0 p0,
T1 p1,
T2 p2)
The actual implementation of the function
|
org.ocamljava.runtime.values.Value |
getClosure(Wrapper<T0> w0,
Wrapper<T1> w1,
Wrapper<T2> w2)
Returns the closure to be executed from the OCaml runtime.
|
Wrapper<? extends OCamlFunction3<T0,T1,T2,TR>> |
getWrapper()
Returns the wrapper used to wrap
Value elements into
instances of the current class. |
Wrapper<? extends OCamlValue> |
getWrapper(int idx)
Returns the wrapper used to wrap
Value elements into
instances of the embedded type at given index. |
int |
hashCode() |
java.lang.String |
toString() |
static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,TR extends OCamlValue> |
wrap(Wrapper<T0> w0,
Wrapper<T1> w1,
Wrapper<T2> w2,
Wrapper<TR> wr,
org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,TR extends OCamlValue> |
wrapper(Wrapper<T0> w0,
Wrapper<T1> w1,
Wrapper<T2> w2,
Wrapper<TR> wr)
Returns a wrapper for
OCamlFunction3 values. |
value, wrap, wrapperpublic OCamlFunction3(Wrapper<T0> w0, Wrapper<T1> w1, Wrapper<T2> w2, Wrapper<TR> wr)
w0 - wrapper for first parameter - should not be nullw1 - wrapper for second parameter - should not be nullw2 - wrapper for third parameter - should not be nullwr - wrapper for result - should not be nullpublic OCamlFunction3()
public final Wrapper<? extends OCamlFunction3<T0,T1,T2,TR>> getWrapper()
Value elements into
instances of the current class.getWrapper in class OCamlValueValue elements into
instances of the current classpublic Wrapper<? extends OCamlValue> getWrapper(int idx)
Value elements into
instances of the embedded type at given index.getWrapper in class OCamlValueidx - index of embedded typeValue elements into
instances of the embedded type at given index.public org.ocamljava.runtime.values.Value getClosure(Wrapper<T0> w0, Wrapper<T1> w1, Wrapper<T2> w2)
w0 - wrapper for first parameter - should not be nullw1 - wrapper for second parameter - should not be nullw2 - wrapper for third parameter - should not be nullpublic abstract TR execute(T0 p0, T1 p1, T2 p2) throws OCamlException
p0 - first parameter - should not be nullp1 - second parameter - should not be nullp2 - third parameter - should not be nullOCamlException - if function failspublic final int hashCode()
hashCode in class OCamlValuepublic final boolean equals(java.lang.Object obj)
equals in class OCamlValuepublic final java.lang.String toString()
toString in class OCamlValuepublic static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,TR extends OCamlValue> OCamlFunction3<T0,T1,T2,TR> wrap(Wrapper<T0> w0, Wrapper<T1> w1, Wrapper<T2> w2, Wrapper<TR> wr, org.ocamljava.runtime.values.Value v)
w0 - wrapper for first parameter - should not be nullw1 - wrapper for second parameter - should not be nullw2 - wrapper for third parameter - should not be nullwr - wrapper for result - should not be nullv - value to wrap - should not be nullOCamlFunction3 instance wrapping the passed valuepublic static <T0 extends OCamlValue,T1 extends OCamlValue,T2 extends OCamlValue,TR extends OCamlValue> Wrapper<? extends OCamlFunction3<T0,T1,T2,TR>> wrapper(Wrapper<T0> w0, Wrapper<T1> w1, Wrapper<T2> w2, Wrapper<TR> wr)
OCamlFunction3 values.w0 - wrapper for first parameter - should not be nullw1 - wrapper for second parameter - should not be nullw2 - wrapper for third parameter - should not be nullwr - wrapper for result - should not be nullOCamlFunction3 values