public abstract class OtpErlangObject
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Constructor and Description |
|---|
OtpErlangObject() |
| Modifier and Type | Method and 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.
|
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 <T> OtpErlangObject bind(T binds) throws OtpErlangException
binds - variable bindingsOtpErlangExceptionpublic java.lang.Object clone()
clone in class java.lang.Objectpublic 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 void encode(OtpOutputStream buf)
buf - an output stream to which the encoded term should be written.public abstract boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare to.public int hashCode()
hashCode in class java.lang.Objectpublic <T> boolean match(OtpErlangObject term, T binds)
term - the object to matchbinds - variable bindingspublic abstract java.lang.String toString()
toString in class java.lang.Object