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