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. |
value
public static final Wrapper<OCamlOutChannel> WRAPPER
OCamlOutChannel
values.public Wrapper<? extends OCamlOutChannel> 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.io.OutputStream stream()
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 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 null
OCamlOutChannel
instance wrapping the passed valuepublic static Wrapper<? extends OCamlOutChannel> wrapper()
OCamlOutChannel
values.OCamlOutChannel
values