public final class OCamlExn extends OCamlValue
OCamlExn
class is the wrapper class for OCaml values of
type exn
.Modifier and Type | Field and Description |
---|---|
static Wrapper<OCamlExn> |
WRAPPER
Wrapper for
OCamlExn values. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Wrapper<? extends OCamlExn> |
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 |
stringValue()
Returns the string representation of the underlying exception.
|
java.lang.String |
toString() |
static OCamlExn |
wrap(org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static Wrapper<? extends OCamlExn> |
wrapper()
Returns a wrapper for
OCamlExn values. |
value
public Wrapper<? extends OCamlExn> 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 int hashCode()
hashCode
in class OCamlValue
public boolean equals(java.lang.Object obj)
equals
in class OCamlValue
public final java.lang.String stringValue()
public java.lang.String toString()
toString
in class OCamlValue
public static OCamlExn wrap(org.ocamljava.runtime.values.Value v)
v
- value to wrap - should not be null
OCamlExn
instance wrapping the passed value