public abstract class OtpErlangObject extends Object implements Serializable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OtpErlangObject.Hash |
| Modifier and Type | Field and Description |
|---|---|
protected int |
hashCodeValue |
| 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).
|
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(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 String |
toString() |
public abstract String toString()
public 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(Object o)
public <T> boolean match(OtpErlangObject term, T binds)
term - the object to matchbinds - variable bindingspublic <T> OtpErlangObject bind(T binds) throws OtpErlangException
binds - variable bindingsOtpErlangExceptionprotected int doHashCode()
Copyright © 2020. All rights reserved.