All Packages Class Hierarchy This Package Previous Next Index
Class jive.erlang.ETuple
java.lang.Object
|
+----jive.erlang.EVar
|
+----jive.erlang.ETuple
- public class ETuple
- extends EVar
ETuple is a class that encapsulates an Erlang Tuple.
- Author:
- Kaj Nygren (kaj@medialab.ericsson.se), Joakim Grebenö (jocke@erix.ericsson.se)
-
ETuple()
-
Creates an empty tuple.
-
ETuple(EVar)
-
Creates a tuple with 1 element.
-
ETuple(EVar, EVar)
-
Creates a tuple with 2 elements.
-
ETuple(EVar, EVar, EVar)
-
Creates a tuple with 3 elements.
-
ETuple(EVar, EVar, EVar, EVar)
-
Creates a tuple with 4 elements.
-
ETuple(EVar, EVar, EVar, EVar, EVar)
-
Creates a tuple with 5 elements.
-
ETuple(EVar, EVar, EVar, EVar, EVar, EVar)
-
Creates a tuple with 6 elements.
-
ETuple(EVar[])
-
Creates a tuple from an array of EVar elements.
-
elementAt(int)
-
Returns the EVar at the specified index.
-
elements()
-
Returns an enumeration of the EVars in this tuple.
-
length()
-
Returns the number of EVars in this tuple.
-
pack()
-
Packs the Erlang tuple into a byte array.
-
value()
-
Returns this tuple as an array of EVar elements.
ETuple
public ETuple()
- Creates an empty tuple.
ETuple
public ETuple(EVar el1)
- Creates a tuple with 1 element.
ETuple
public ETuple(EVar el1,
EVar el2)
- Creates a tuple with 2 elements.
ETuple
public ETuple(EVar el1,
EVar el2,
EVar el3)
- Creates a tuple with 3 elements.
ETuple
public ETuple(EVar el1,
EVar el2,
EVar el3,
EVar el4)
- Creates a tuple with 4 elements.
ETuple
public ETuple(EVar el1,
EVar el2,
EVar el3,
EVar el4,
EVar el5)
- Creates a tuple with 5 elements.
ETuple
public ETuple(EVar el1,
EVar el2,
EVar el3,
EVar el4,
EVar el5,
EVar el6)
- Creates a tuple with 6 elements.
ETuple
public ETuple(EVar el[])
- Creates a tuple from an array of EVar elements.
value
public EVar[] value()
- Returns this tuple as an array of EVar elements.
length
public int length()
- Returns the number of EVars in this tuple.
elementAt
public EVar elementAt(int index)
- Returns the EVar at the specified index.
elements
public Enumeration elements()
- Returns an enumeration of the EVars in this tuple.
pack
public byte[] pack()
- Packs the Erlang tuple into a byte array.
Used when sending the list to an Erlang server.
- Overrides:
- pack in class EVar
All Packages Class Hierarchy This Package Previous Next Index