|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ericsson.otp.erlang.OtpErlangObject
public abstract class OtpErlangObject
Base class of the Erlang data type classes. This class is used to represent an arbitrary Erlang term.
| Nested Class Summary | |
|---|---|
protected static class |
OtpErlangObject.Hash
|
| Field Summary | |
|---|---|
protected int |
hashCodeValue
|
| Constructor Summary | |
|---|---|
OtpErlangObject()
|
|
| Method Summary | ||
|---|---|---|
|
bind(T binds)
Make new Erlang term replacing variables with the respective values from bindings argument(s). |
|
java.lang.Object |
clone()
|
|
static OtpErlangObject |
decode(OtpInputStream buf)
Read binary data in the Erlang external format, and produce a corresponding Erlang data type object. |
|
protected int |
doHashCode()
|
|
abstract void |
encode(OtpOutputStream buf)
Convert the object according to the rules of the Erlang external format. |
|
abstract boolean |
equals(java.lang.Object o)
Determine if two Erlang objects are equal. |
|
int |
hashCode()
|
|
|
match(OtpErlangObject term,
T binds)
Perform match operation against given term. |
|
abstract java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int hashCodeValue
| Constructor Detail |
|---|
public OtpErlangObject()
| Method Detail |
|---|
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract void encode(OtpOutputStream buf)
buf - an output stream to which the encoded term should be written.
public static OtpErlangObject decode(OtpInputStream buf)
throws OtpErlangDecodeException
buf - an input stream containing one or more encoded Erlang terms.
OtpErlangDecodeException - if the stream does not contain a valid representation of
an Erlang term.public abstract boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare to.
public <T> boolean match(OtpErlangObject term,
T binds)
term - the object to matchbinds - variable bindings
public <T> OtpErlangObject bind(T binds)
throws OtpErlangException
binds - variable bindings
OtpErlangExceptionpublic int hashCode()
hashCode in class java.lang.Objectprotected int doHashCode()
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||