com.twistedmatrix.spread
Class Jellyable
java.lang.Object
|
+--com.twistedmatrix.spread.Jellyable
- public class Jellyable
- extends java.lang.Object
A class whose instances may be jellied.
Subclasses must implement the following method:
public static unjellyFor(Jelly.JellyDecoder decoder, ArrayList stateList);
Where the state is the result of getStateFor(). In general, the following should
be true:
Jellyable.unjellyFor(decoder, o.getStateFor(encoder)).equals(o)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jellyable
public Jellyable()
_getClassName
public java.lang.String _getClassName()
- Return the class name for jellying.
jellyFor
protected java.util.ArrayList jellyFor(Jelly.JellyEncoder encoder)
- Jelly the object and return the resulting s-exp list.
getStateFor
public java.util.ArrayList getStateFor(Jelly.JellyEncoder encoder)
- Return object's state as a sexp list.