|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV NEXT | FRAMES NO FRAMES |
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 |
---|
TypedExpression<E> expression
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 |
---|
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
To protect against malicious attacks, all read attributes are validated.
RangeSequence.start
and RangeSequence.end
bounds from
in
as well as the current RangeSequence.sequence
value
and immediately validates them; upon success, the current
RangeSequence.direction
is read and lastly, the internal sequence
AbstractSequence.state
inherited from the super class is read.IOException
- In case the deserialization fails.
ClassNotFoundException
- If this class could not be loaded.RangeSequence.validate(int, int, int)
private void writeObject(ObjectOutputStream out) throws IOException
The internal state is also serialized.
RangeSequence.start
and RangeSequence.end
bounds to
out
, followed by the current RangeSequence.sequence
number and the RangeSequence.direction
. Last, the internal
sequence AbstractSequence.state
inherited from the super
class is written.IOException
- In case the serialization fails.Serialized Fields |
---|
int start
Invariant: start >= 0
int end
Invariant: end >= RangeSequence.start
>= 0 unless infinite.
int sequence
Invariant: RangeSequence.start
<= sequence <= RangeSequence.end
boolean direction
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 | ||||||||
PREV NEXT | FRAMES NO FRAMES |