Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

Serialized Form


Package dk.rode.thesis.command

Class dk.rode.thesis.command.CommandException extends Exception implements Serializable

serialVersionUID: 1L

Class dk.rode.thesis.command.EvilCommand.EvilCommandException extends CommandException implements Serializable

serialVersionUID: 1L


Package dk.rode.thesis.interpreter

Class dk.rode.thesis.interpreter.BreakExpression.BreakException extends ExpressionException implements Serializable

serialVersionUID: 1L

Serialized Fields

expression

TypedExpression<E> expression
The target expression to be evaluated next.

Can be null.

Class dk.rode.thesis.interpreter.ExpressionException extends Exception implements Serializable

serialVersionUID: 1L


Package dk.rode.thesis.memento

Class dk.rode.thesis.memento.MemorizableException extends Exception implements Serializable

serialVersionUID: 1L

Class dk.rode.thesis.memento.RangeSequence extends AbstractSequence<Integer> implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Deserializes this memorizable sequence.

To protect against malicious attacks, all read attributes are validated.

Throws:
IOException - In case the deserialization fails.
ClassNotFoundException - If this class could not be loaded.
See Also:
RangeSequence.validate(int, int)

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serializes this memorizable range sequence.

The internal state is also serialized.

Throws:
IOException - In case the serialization fails.
Serialized Fields

start

int start
Start number of this sequence.

Invariant: start >= 0

 

end

int end
End number of this sequence.

Invariant: end >= RangeSequence.start >= 0

 

sequence

int sequence
The current sequence number.

Invariant: RangeSequence.start <= sequence <= RangeSequence.end

 

direction

boolean direction
True to return the next higher sequence value ("forward"), false to return previous values ("reverse")

 

Package dk.rode.thesis.singleton

Class dk.rode.thesis.singleton.SingletonError extends Error implements Serializable

serialVersionUID: 1L

Class dk.rode.thesis.singleton.SingletonException extends RuntimeException implements Serializable

serialVersionUID: 1L


Package dk.rode.thesis.templatemethod

Class dk.rode.thesis.templatemethod.SequenceValueException extends RuntimeException implements Serializable

serialVersionUID: 1L


Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.