public final class OCamlInChannel extends OCamlValue
OCamlInChannel class is the wrapper class for OCaml values of
type int.| Modifier and Type | Field and Description |
|---|---|
static Wrapper<OCamlInChannel> |
WRAPPER
Wrapper for
OCamlInChannel values. |
| Modifier and Type | Method and Description |
|---|---|
static OCamlInChannel |
create(java.io.InputStream v)
Constructs a new
in_channel value, and wraps it. |
boolean |
equals(java.lang.Object obj) |
Wrapper<? extends OCamlInChannel> |
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.io.InputStream |
stream()
Returns the wrapped stream.
|
java.lang.String |
toString() |
static OCamlInChannel |
wrap(org.ocamljava.runtime.values.Value v)
Wraps the passed value.
|
static Wrapper<? extends OCamlInChannel> |
wrapper()
Returns a wrapper for
OCamlInChannel values. |
valuepublic static final Wrapper<OCamlInChannel> WRAPPER
OCamlInChannel values.public Wrapper<? extends OCamlInChannel> 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 java.io.InputStream stream()
public int hashCode()
hashCode in class OCamlValuepublic boolean equals(java.lang.Object obj)
equals in class OCamlValuepublic java.lang.String toString()
toString in class OCamlValuepublic static OCamlInChannel create(java.io.InputStream v)
in_channel value, and wraps it.v - value to wrapOCamlInChannel instance wrapping the passed valuepublic static OCamlInChannel wrap(org.ocamljava.runtime.values.Value v)
v - value to wrap - should not be nullOCamlInChannel instance wrapping the passed valuepublic static Wrapper<? extends OCamlInChannel> wrapper()
OCamlInChannel values.OCamlInChannel values