public final class OCamlJavaInstance extends OCamlValue
OCamlJavaInstance
class is the wrapper class for OCaml values of
type java_instance
.Modifier and Type | Field and Description |
---|---|
static OCamlJavaInstance |
NULL
An representation of
null . |
static Wrapper<OCamlJavaInstance> |
WRAPPER
Wrapper for
OCamlJavaInstance values. |
Modifier and Type | Method and Description |
---|---|
static OCamlJavaInstance |
create(java.lang.Object v)
Constructs a new
java_instance value, and wraps it. |
boolean |
equals(java.lang.Object obj) |
Wrapper<? extends OCamlJavaInstance> |
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.Object |
instance()
Returns the wrapped value as an
Object . |
java.lang.String |
toString() |
static OCamlJavaInstance |
wrap(org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static Wrapper<? extends OCamlJavaInstance> |
wrapper()
Returns a wrapper for
OCamlJavaInstance values. |
value
public static final Wrapper<OCamlJavaInstance> WRAPPER
OCamlJavaInstance
values.public static final OCamlJavaInstance NULL
null
.public Wrapper<? extends OCamlJavaInstance> getWrapper()
Value
elements into
instances of the current class.getWrapper
in class OCamlValue
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.getWrapper
in class OCamlValue
idx
- index of embedded typeValue
elements into
instances of the embedded type at given index.public java.lang.Object instance()
Object
.Object
public int hashCode()
hashCode
in class OCamlValue
public boolean equals(java.lang.Object obj)
equals
in class OCamlValue
public java.lang.String toString()
toString
in class OCamlValue
public static OCamlJavaInstance create(java.lang.Object v)
java_instance
value, and wraps it.v
- value to wrap - should not be null
OCamlJavaInstance
instance wrapping the passed valuepublic static OCamlJavaInstance wrap(org.ocamljava.runtime.values.Value v)
v
- value to wrap - should not be null
OCamlJavaInstance
instance wrapping the passed valuepublic static Wrapper<? extends OCamlJavaInstance> wrapper()
OCamlJavaInstance
values.OCamlJavaInstance
values