Class jive.erlang.EList
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jive.erlang.EList

java.lang.Object
   |
   +----jive.erlang.EVar
           |
           +----jive.erlang.EList

public class EList
extends EVar
EList is a class that encapsulates an Erlang List.
Author:
Kaj Nygren (kaj@medialab.ericsson.se), Joakim Grebenö (jocke@erix.ericsson.se)

Constructor Index

 o EList()
Creates an empty list.
 o EList(EVar)
Creates a list with 1 element.
 o EList(EVar, EVar)
Creates a list with 2 elements.
 o EList(EVar, EVar, EVar)
Creates a list with 3 elements.
 o EList(EVar, EVar, EVar, EVar)
Creates a list with 4 elements.
 o EList(EVar, EVar, EVar, EVar, EVar)
Creates a list with 5 elements.
 o EList(EVar, EVar, EVar, EVar, EVar, EVar)
Creates a list with 6 elements.
 o EList(EVar[])
Creates a list 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 list.
 o length()
Returns the number of EVars in this list.
 o pack()
Packs the Erlang List into a byte array.
 o value()
Returns this list as an array of EVar elements.

Constructors

 o EList
  public EList()
Creates an empty list.
 o EList
  public EList(EVar el1)
Creates a list with 1 element.
 o EList
  public EList(EVar el1,
               EVar el2)
Creates a list with 2 elements.
 o EList
  public EList(EVar el1,
               EVar el2,
               EVar el3)
Creates a list with 3 elements.
 o EList
  public EList(EVar el1,
               EVar el2,
               EVar el3,
               EVar el4)
Creates a list with 4 elements.
 o EList
  public EList(EVar el1,
               EVar el2,
               EVar el3,
               EVar el4,
               EVar el5)
Creates a list with 5 elements.
 o EList
  public EList(EVar el1,
               EVar el2,
               EVar el3,
               EVar el4,
               EVar el5,
               EVar el6)
Creates a list with 6 elements.
 o EList
  public EList(EVar el[])
Creates a list from an array of EVar elements.

Methods

 o value
  public EVar[] value()
Returns this list as an array of EVar elements.
 o length
  public int length()
Returns the number of EVars in this list.
 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 list.
 o pack
  public byte[] pack()
Packs the Erlang List 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