|
||||||||
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.OtpErlangAtom
Provides a Java representation of Erlang atoms. Atoms can be
created from strings whose length is not more than maxAtomLength
characters.
Field Summary | |
static int |
maxAtomLength
The maximun allowed length of an atom, in characters |
Constructor Summary | |
OtpErlangAtom(boolean t)
Create an atom whose value is "true" or "false". |
|
OtpErlangAtom(OtpInputStream buf)
Create an atom from a stream containing an atom encoded in Erlang external format. |
|
OtpErlangAtom(java.lang.String atom)
Create an atom from the given string. |
Method Summary | |
java.lang.String |
atomValue()
Get the actual string contained in this object. |
boolean |
booleanValue()
The boolean value of this atom. |
void |
encode(OtpOutputStream buf)
Convert this atom to the equivalent Erlang external representation. |
boolean |
equals(java.lang.Object o)
Determine if two atoms are equal. |
boolean |
equals(OtpErlangAtom atom)
Determine if two atoms are equal. |
java.lang.String |
toString()
Get the printname of the atom represented by this object. |
Methods inherited from class com.ericsson.otp.erlang.OtpErlangObject |
decode |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int maxAtomLength
Constructor Detail |
public OtpErlangAtom(java.lang.String atom) throws OtpErlangDataException
atom
- the string to create the atom from.maxAtomLength
characters.public OtpErlangAtom(OtpInputStream buf) throws OtpErlangDecodeException
buf
- the stream containing the encoded atom.public OtpErlangAtom(boolean t)
Method Detail |
public java.lang.String atomValue()
toString()
public boolean booleanValue()
public java.lang.String toString()
atomValue()
public boolean equals(java.lang.Object o)
o
- the object to compare to.public boolean equals(OtpErlangAtom atom)
atom
- the other atom to compare to.public void encode(OtpOutputStream buf)
buf
- an output stream to which the encoded atom should be
written.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |