java.io.Serializable, java.lang.CloneableOtpErlangAtom, OtpErlangBitstr, OtpErlangDouble, OtpErlangExternalFun, OtpErlangFun, OtpErlangList, OtpErlangLong, OtpErlangMap, OtpErlangPid, OtpErlangPort, OtpErlangRef, OtpErlangString, OtpErlangTuplepublic abstract class OtpErlangObject
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
OtpErlangObject.Hash |
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
hashCodeValue |
| Constructor | Description |
|---|---|
OtpErlangObject() |
| Modifier and Type | Method | Description |
|---|---|---|
<T> OtpErlangObject |
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() |
|
<T> boolean |
match(OtpErlangObject term,
T binds) |
Perform match operation against given term.
|
abstract java.lang.String |
toString() |
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 bindingspublic <T> OtpErlangObject bind(T binds) throws OtpErlangException
binds - variable bindingsOtpErlangExceptionpublic int hashCode()
hashCode in class java.lang.Objectprotected int doHashCode()
public java.lang.Object clone()
clone in class java.lang.Object