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)

Constructor Index

 o ETuple()
Creates an empty tuple.
 o ETuple(EVar)
Creates a tuple with 1 element.
 o ETuple(EVar, EVar)
Creates a tuple with 2 elements.
 o ETuple(EVar, EVar, EVar)
Creates a tuple with 3 elements.
 o ETuple(EVar, EVar, EVar, EVar)
Creates a tuple with 4 elements.
 o ETuple(EVar, EVar, EVar, EVar, EVar)
Creates a tuple with 5 elements.
 o ETuple(EVar, EVar, EVar, EVar, EVar, EVar)
Creates a tuple with 6 elements.
 o ETuple(EVar[])
Creates a tuple from an array of EVar elements.

Method Index

 o elementAt(int)
Returns the EVar at the specified index.
 o elements()
Returns an enumeration of the EVars in this tuple.
 o length()
Returns the number of EVars in this tuple.
 o pack()
Packs the Erlang tuple into a byte array.
 o value()
Returns this tuple as an array of EVar elements.

Constructors

 o ETuple
 public ETuple()
Creates an empty tuple.

 o ETuple
 public ETuple(EVar el1)
Creates a tuple with 1 element.

 o ETuple
 public ETuple(EVar el1,
               EVar el2)
Creates a tuple with 2 elements.

 o ETuple
 public ETuple(EVar el1,
               EVar el2,
               EVar el3)
Creates a tuple with 3 elements.

 o ETuple
 public ETuple(EVar el1,
               EVar el2,
               EVar el3,
               EVar el4)
Creates a tuple with 4 elements.

 o ETuple
 public ETuple(EVar el1,
               EVar el2,
               EVar el3,
               EVar el4,
               EVar el5)
Creates a tuple with 5 elements.

 o ETuple
 public ETuple(EVar el1,
               EVar el2,
               EVar el3,
               EVar el4,
               EVar el5,
               EVar el6)
Creates a tuple with 6 elements.

 o ETuple
 public ETuple(EVar el[])
Creates a tuple from an array of EVar elements.

Methods

 o value
 public EVar[] value()
Returns this tuple as an array of EVar elements.

 o length
 public int length()
Returns the number of EVars in this tuple.

 o elementAt
 public EVar elementAt(int index)
Returns the EVar at the specified index.

 o elements
 public Enumeration elements()
Returns an enumeration of the EVars in this tuple.

 o 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