(atom arg)
Constructor for an Erlang atom data type. arg
may be any of the following:
java.lang.String
boolean
OtpInputStream
(buffer)Constructor for an Erlang atom data type. `arg` may be any of the following: * a `java.lang.String` * a `boolean` * an `OtpInputStream` (buffer)
(binary arg)
Constructor for an Erlang binary data type where arg
can be any of the
following:
byte
array,Object
OtpInputStream
(buffer)Constructor for an Erlang binary data type where `arg` can be any of the following: * a `byte` array, * an arbitrary Java `Object` * an `OtpInputStream` (buffer)
(bitstr arg)
(bitstr byte-array pad-bits)
Constructor for an Erlang bitstring data type. It may take either one or two arguments. If one is passed, they be of the following types:
byte
array,Object
OtpInputStream
(buffer)If two are passed, the first must be a byte
array and the second must be an
integer representing the pad bits.
Constructor for an Erlang bitstring data type. It may take either one or two arguments. If one is passed, they be of the following types: * a `byte` array, * an arbitrary Java `Object` * an `OtpInputStream` (buffer) If two are passed, the first must be a `byte` array and the second must be an integer representing the pad bits.
(boolean arg)
Constructor for an Erlang boolean (atom) data type. arg
may be either of
the following:
boolean
OtpInputStream
(buffer)Constructor for an Erlang boolean (atom) data type. `arg` may be either of the following: * a `boolean` * an `OtpInputStream` (buffer)
(byte arg)
See the docstring for #'types/long
. arg
may be either of the
following:
byte
OtpInputStream
(buffer)Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes:
OtpErlangByte
OtpErlangChar
OtpErlangInt
OtpErlangLong
OtpErlangShort
OtpErlangUInt
OtpErlangUShort
As such, jiface
supplies the following constructors:
types/byte
types/char
types/int
types/long
types/short
types/uint
types/ushort
OtpErlangUInt
and OtpErlangUShort
(and thus types/unit
and types/ushort
)
are provided for Corba compatibility.
See the docstring for ``#'types/long``. `arg` may be either of the following: * a `byte` * an `OtpInputStream` (buffer) Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes: * `OtpErlangByte` * `OtpErlangChar` * `OtpErlangInt` * `OtpErlangLong` * `OtpErlangShort` * `OtpErlangUInt` * `OtpErlangUShort` As such, `jiface` supplies the following constructors: * `types/byte` * `types/char` * `types/int` * `types/long` * `types/short` * `types/uint` * `types/ushort` `OtpErlangUInt` and `OtpErlangUShort` (and thus `types/unit` and `types/ushort`) are provided for Corba compatibility.
(char num)
See the docstring for #'types/long
. arg
may be either of the
following:
char
OtpInputStream
(buffer)Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes:
OtpErlangByte
OtpErlangChar
OtpErlangInt
OtpErlangLong
OtpErlangShort
OtpErlangUInt
OtpErlangUShort
As such, jiface
supplies the following constructors:
types/byte
types/char
types/int
types/long
types/short
types/uint
types/ushort
OtpErlangUInt
and OtpErlangUShort
(and thus types/unit
and types/ushort
)
are provided for Corba compatibility.
See the docstring for ``#'types/long``. `arg` may be either of the following: * a `char` * an `OtpInputStream` (buffer) Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes: * `OtpErlangByte` * `OtpErlangChar` * `OtpErlangInt` * `OtpErlangLong` * `OtpErlangShort` * `OtpErlangUInt` * `OtpErlangUShort` As such, `jiface` supplies the following constructors: * `types/byte` * `types/char` * `types/int` * `types/long` * `types/short` * `types/uint` * `types/ushort` `OtpErlangUInt` and `OtpErlangUShort` (and thus `types/unit` and `types/ushort`) are provided for Corba compatibility.
(double num)
Provides a Java representation of Erlang double. arg
may be either of the
following:
double
OtpInputStream
(buffer)Provides a Java representation of Erlang double. `arg` may be either of the following: * a `double` * an `OtpInputStream` (buffer)
(external-fun buf)
(external-fun mod func arity)
Erlang external function representation. If a single argument is passed, it
must be an OtpInputStream
. If three arguments are passed, they must be:
String
)String
)Integer
).Erlang external function representation. If a single argument is passed, it must be an `OtpInputStream`. If three arguments are passed, they must be: * the module (`String`) * the function (`String`) * the function's arity (`Integer`).
(float num)
Provides a Java representation of Erlang float. arg
may be either of the
following:
float
OtpInputStream
(buffer)Provides a Java representation of Erlang float. `arg` may be either of the following: * a `float` * an `OtpInputStream` (buffer)
(fun buf)
(fun pid module index uniq free-vars)
(fun pid module arity md5 index old-index uniq free-vars)
Erlang internal function representation. If a single argument is passed, it
must be an OtpInputStream
. If five arguments are passed, they must be:
OtpErlangPid
String
)Long
)uniq
(Long
)OtpErlangObject
sIf eight arguments are passed, they must be:
OtpErlangPid
String
)Integer
)byte
sInteger
)Long
)uniq
(Long
)OtpErlangObject
sErlang internal function representation. If a single argument is passed, it must be an `OtpInputStream`. If five arguments are passed, they must be: * an `OtpErlangPid` * a module (`String`) * an index (`Long`) * `uniq` (`Long`) * an array of `OtpErlangObject`s If eight arguments are passed, they must be: * an `OtpErlangPid` * a module (`String`) * function arity (`Integer`) * an md5 as an array of `byte`s * an index (`Integer`) * an old index (`Long`) * `uniq` (`Long`) * an array of `OtpErlangObject`s
(int arg)
Provides a Java representation of an Erlang integer. arg
may be either of the
following:
Integer
OtpInputStream
(buffer)Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes:
OtpErlangByte
OtpErlangChar
OtpErlangInt
OtpErlangLong
OtpErlangShort
OtpErlangUInt
OtpErlangUShort
As such, jiface
supplies the following constructors:
types/byte
types/char
types/int
types/long
types/short
types/uint
types/ushort
OtpErlangUInt
and OtpErlangUShort
(and thus types/unit
and types/ushort
)
are provided for Corba compatibility.
Provides a Java representation of an Erlang integer. `arg` may be either of the following: * an `Integer` * an `OtpInputStream` (buffer) Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes: * `OtpErlangByte` * `OtpErlangChar` * `OtpErlangInt` * `OtpErlangLong` * `OtpErlangShort` * `OtpErlangUInt` * `OtpErlangUShort` As such, `jiface` supplies the following constructors: * `types/byte` * `types/char` * `types/int` * `types/long` * `types/short` * `types/uint` * `types/ushort` `OtpErlangUInt` and `OtpErlangUShort` (and thus `types/unit` and `types/ushort`) are provided for Corba compatibility.
(list)
(list args)
(list elems last-tail)
(list elems index count)
Provides a Java representation of Erlang lists. Lists are created from zero or more arbitrary Erlang terms. If no argument is provided, an empty list is returned. If one argument is provided, it may be one of the following types:
OtpErlangObject
(a single-item list will be returned)OtpErlangObject
sString
(a list of Erlang integers will be returned, repsresenting
Uncode code pointsOtpInputStream
(buffer)If two arguments are passed, they must be of the following types:
OtpErlangObject
sOtpErlangObject
If three arguments are passed, a new list will be created from a subset of the passed list, the arguments being:
OtpErlangObject
sInteger
)Integer
), starting with the element at
the given indexThe arity of the list is the number of elements it contains.
Provides a Java representation of Erlang lists. Lists are created from zero or more arbitrary Erlang terms. If no argument is provided, an empty list is returned. If one argument is provided, it may be one of the following types: * an `OtpErlangObject` (a single-item list will be returned) * an array of `OtpErlangObject`s * a `String` (a list of Erlang integers will be returned, repsresenting Uncode code points * an `OtpInputStream` (buffer) If two arguments are passed, they must be of the following types: * an array of `OtpErlangObject`s * a last tail `OtpErlangObject` If three arguments are passed, a new list will be created from a subset of the passed list, the arguments being: * an array of `OtpErlangObject`s * a starting index (`Integer`) * the number of items to include (`Integer`), starting with the element at the given index The arity of the list is the number of elements it contains.
(long arg)
Provides a Java representation of an Erlang integer. arg
may be one of the
following:
long
java.math.BigInteger
OtpInputStream
(buffer)Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes:
OtpErlangByte
OtpErlangChar
OtpErlangInt
OtpErlangLong
OtpErlangShort
OtpErlangUInt
OtpErlangUShort
As such, jiface
supplies the following constructors:
types/byte
types/char
types/int
types/long
types/short
types/uint
types/ushort
OtpErlangUInt
and OtpErlangUShort
(and thus types/unit
and types/ushort
)
are provided for Corba compatibility.
Provides a Java representation of an Erlang integer. `arg` may be one of the following: * a `long` * a `java.math.BigInteger` * an `OtpInputStream` (buffer) Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes: * `OtpErlangByte` * `OtpErlangChar` * `OtpErlangInt` * `OtpErlangLong` * `OtpErlangShort` * `OtpErlangUInt` * `OtpErlangUShort` As such, `jiface` supplies the following constructors: * `types/byte` * `types/char` * `types/int` * `types/long` * `types/short` * `types/uint` * `types/ushort` `OtpErlangUInt` and `OtpErlangUShort` (and thus `types/unit` and `types/ushort`) are provided for Corba compatibility.
(map)
(map buf)
(map ks vs)
(map ks kstart kcount vs vstart vcount)
Provides a Java representation of Erlang maps. Maps are created from one
or more arbitrary Erlang terms. If no argument is provided, an empty map
is returned. If a sing argument is provided, it must be of type
OtpInputStream
. If two arguments are passed, they must be:
OtpErlangObject
s representing the map keysOtpErlangObject
s representing the corresponding map valuesAlternatively, a "sub-map" may be created by providing six arguments:
OtpErlangObject
s representing the map keysInteger
)Integer
), starting with the element at
the given indexOtpErlangObject
s representing the corresponding map valuesInteger
)Integer
), starting with the element at
the given indexThe arity of the map is the number of elements it contains. The keys and values can be retrieved as arrays and the value for a key can be queried.
Provides a Java representation of Erlang maps. Maps are created from one or more arbitrary Erlang terms. If no argument is provided, an empty map is returned. If a sing argument is provided, it must be of type `OtpInputStream`. If two arguments are passed, they must be: * an array of `OtpErlangObject`s representing the map keys * an array of `OtpErlangObject`s representing the corresponding map values Alternatively, a "sub-map" may be created by providing six arguments: * an array of `OtpErlangObject`s representing the map keys * the starting index of the map keys (`Integer`) * the number of keys to include (`Integer`), starting with the element at the given index * an array of `OtpErlangObject`s representing the corresponding map values * the starting index of the map values (`Integer`) * the number of values to include (`Integer`), starting with the element at the given index The arity of the map is the number of elements it contains. The keys and values can be retrieved as arrays and the value for a key can be queried.
(object)
This is a psuedo-constructor: OtpErlangObject
doesn't provide a
constructor method, but the object itself is needed for creating tuples,
so this function simply returns OtpErlangObject
.
This is a psuedo-constructor: `OtpErlangObject` doesn't provide a constructor method, but the object itself is needed for creating tuples, so this function simply returns `OtpErlangObject`.
(pid buf)
(pid node id serial creation)
Provides a Java representation of an Erlang PID. PIDs represent Erlang processes and consist of a nodename and a number of integers.
If one argument is passed, it must be of type OtpInputStream
. If four
arguments are passed, they must be:
String
)Integer
)Integer
)Integer
)Provides a Java representation of an Erlang PID. PIDs represent Erlang processes and consist of a nodename and a number of integers. If one argument is passed, it must be of type `OtpInputStream`. If four arguments are passed, they must be: * the node (`String`) * the pid number (`Integer`) * the pid serial (`Integer`) * the pid creation (`Integer`)
(port buf)
(port node id creation)
(port tag node id creation)
Provides a Java representation of an Erlang Port.
If one argument is passed, it must be of type OtpInputStream
. If three
arguments are passed, they must be:
String
)Integer
)Integer
)If four arguments are passed, they must be:
Integer
)String
)Integer
)Integer
)Provides a Java representation of an Erlang Port. If one argument is passed, it must be of type `OtpInputStream`. If three arguments are passed, they must be: * the node (`String`) * the port id (`Integer`) * the pid creation (`Integer`) If four arguments are passed, they must be: * the tag (`Integer`) * the node (`String`) * the port id (`Integer`) * the port creation (`Integer`)
(ref buf)
(ref node ids creation)
(ref tag node ids creation)
Provides a Java representation of an Erlang ref.
If one argument is passed, it must be of type OtpInputStream
. If three
arguments are passed, they must be:
String
)Integer
sInteger
)If four arguments are passed, they must be:
Integer
)String
)Integer
sInteger
)Provides a Java representation of an Erlang ref. If one argument is passed, it must be of type `OtpInputStream`. If three arguments are passed, they must be: * the node (`String`) * an array of `Integer`s * the ref creation (`Integer`) If four arguments are passed, they must be: * the tag (`Integer`) * the node (`String`) * an array of `Integer`s * the pid creation (`Integer`)
(short arg)
Provides a Java representation of an Erlang integer. arg
may be either of the
following:
short
OtpInputStream
(buffer)Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes:
OtpErlangByte
OtpErlangChar
OtpErlangInt
OtpErlangLong
OtpErlangShort
OtpErlangUInt
OtpErlangUShort
As such, jiface
supplies the following constructors:
types/byte
types/char
types/int
types/long
types/short
types/uint
types/ushort
OtpErlangUInt
and OtpErlangUShort
(and thus types/unit
and types/ushort
)
are provided for Corba compatibility.
Provides a Java representation of an Erlang integer. `arg` may be either of the following: * a `short` * an `OtpInputStream` (buffer) Note that Erlang itself does not distringuish integer types, however JInterface provides a means of mapping between Java integer types and Erlang with the following classes: * `OtpErlangByte` * `OtpErlangChar` * `OtpErlangInt` * `OtpErlangLong` * `OtpErlangShort` * `OtpErlangUInt` * `OtpErlangUShort` As such, `jiface` supplies the following constructors: * `types/byte` * `types/char` * `types/int` * `types/long` * `types/short` * `types/uint` * `types/ushort` `OtpErlangUInt` and `OtpErlangUShort` (and thus `types/unit` and `types/ushort`) are provided for Corba compatibility.
(string arg)
Provides a Java representation of Erlang strings. Supplied argument may be any of:
String
OtpErlangList
OtpInputStream
(buffer)Provides a Java representation of Erlang strings. Supplied argument may be any of: * `String` * `OtpErlangList` * `OtpInputStream` (buffer)
(tuple arg)
(tuple array index count)
Provides a Java representation of Erlang tuples. Tuples are created from one or more arbitrary Erlang terms. If a single argument is passed, it may be:
OtpErlangObject
, in which case a unary tuple will be createdOtpErlangObject
s, in which case the tuple will have the same
arity as the array that is passedOtpInputStream
(buffer)Alternatively, a tuple may be created from a subset of an array of
OtpErlangObject
s by passing the array, the starting index (0-based), and
the count (number of elements to include).
The arity of the tuple is the number of elements it contains. Elements are indexed from 0 to (arity-1) and can be retrieved individually by using the appropriate index.
Provides a Java representation of Erlang tuples. Tuples are created from one or more arbitrary Erlang terms. If a single argument is passed, it may be: * an `OtpErlangObject`, in which case a unary tuple will be created * an array of `OtpErlangObject`s, in which case the tuple will have the same arity as the array that is passed * an `OtpInputStream` (buffer) Alternatively, a tuple may be created from a subset of an array of `OtpErlangObject`s by passing the array, the starting index (0-based), and the count (number of elements to include). The arity of the tuple is the number of elements it contains. Elements are indexed from 0 to (arity-1) and can be retrieved individually by using the appropriate index.
(uint arg)
See the docstring for #'types/int
.
See the docstring for ``#'types/int``.
(ushort arg)
See the docstring for #'types/short
.
See the docstring for ``#'types/short``.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close