public class OCamlValue extends java.lang.Object
OCamlValue
class is the superclass of all classes wrapping
OCaml values.Modifier and Type | Field and Description |
---|---|
static Wrapper<OCamlValue> |
WRAPPER
Wrapper for
OCamlValue values. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Wrapper<? extends OCamlValue> |
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() |
org.ocamljava.runtime.values.Value |
value()
Returns the wrapped value.
|
static OCamlValue |
wrap(org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static Wrapper<? extends OCamlValue> |
wrapper()
Returns a wrapper for
OCamlValue values. |
public static final Wrapper<OCamlValue> WRAPPER
OCamlValue
values.public Wrapper<? extends OCamlValue> getWrapper()
Value
elements into
instances of the current class.Value
elements into
instances of the current classpublic 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.public org.ocamljava.runtime.values.Value value()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static OCamlValue wrap(org.ocamljava.runtime.values.Value v)
v
- value to wrap - should not be null
OCamlValue
instance wrapping the passed valuepublic static Wrapper<? extends OCamlValue> wrapper()
OCamlValue
values.OCamlValue
values