|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--com.ericsson.otp.erlang.OtpErlangObject
|
+--com.ericsson.otp.erlang.OtpErlangList
Provides a Java representation of Erlang lists. Lists are created from zero or more arbitrary Erlang terms.
The arity of the list is the number of elements it contains.
| Constructor Summary | |
OtpErlangList()
Create an empty list. |
|
OtpErlangList(OtpErlangObject elem)
Create a list containing one element. |
|
OtpErlangList(OtpErlangObject[] elems)
Create a list from an array of arbitrary Erlang terms. |
|
OtpErlangList(OtpErlangObject[] elems,
int start,
int count)
Create a list from an array of arbitrary Erlang terms. |
|
OtpErlangList(OtpInputStream buf)
Create a list from a stream containing an list encoded in Erlang external format. |
|
OtpErlangList(java.lang.String str)
Create a list of characters. |
|
| Method Summary | |
int |
arity()
Get the arity of the list. |
java.lang.Object |
clone()
|
OtpErlangObject |
elementAt(int i)
Get the specified element from the list. |
OtpErlangObject[] |
elements()
Get all the elements from the list as an array. |
void |
encode(OtpOutputStream buf)
Convert this list to the equivalent Erlang external representation. |
boolean |
equals(java.lang.Object o)
Determine if two lists are equal. |
java.lang.String |
toString()
Get the string representation of the list. |
| Methods inherited from class com.ericsson.otp.erlang.OtpErlangObject |
decode |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public OtpErlangList()
public OtpErlangList(java.lang.String str)
str - the characters from which to create the list.public OtpErlangList(OtpErlangObject elem)
elem - the elememet to make the list from.public OtpErlangList(OtpErlangObject[] elems)
elems - the array of terms from which to create the list.
public OtpErlangList(OtpErlangObject[] elems,
int start,
int count)
elems - the array of terms from which to create the list.start - the offset of the first term to insert.count - the number of terms to insert.
public OtpErlangList(OtpInputStream buf)
throws OtpErlangDecodeException
buf - the stream containing the encoded list.| Method Detail |
public int arity()
public OtpErlangObject elementAt(int i)
i - the index of the requested element. List elements are
numbered as array elements, starting at 0.public OtpErlangObject[] elements()
public java.lang.String toString()
public void encode(OtpOutputStream buf)
buf - An output stream to which the encoded list should be
written.public boolean equals(java.lang.Object o)
o - the list to compare to.public java.lang.Object clone()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||