|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
E - The type of value the evaluation of this expression
produces.public interface InitialisableExpression<E>
An initialisable expression represents an expression
that require several steps to be constructed, and hence must
be initialised before actual use.
After initialisation, the expression
is considered immutable. Trying to alter it or initialise it
again is an error.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface dk.rode.thesis.interpreter.Expression |
|---|
Expression.SymbolIdiom |
| Method Summary | |
|---|---|
InitialisableExpression<E> |
copy()
Copies this initialisable expression. |
InitialisableExpression<E> |
initialise()
Initialises this expression before evaluation. |
boolean |
isInitialised()
Returns true if this expression has been initialised, and hence ready to be evaluated, false if not. |
| Methods inherited from interface dk.rode.thesis.interpreter.Expression |
|---|
asSymbol, contains, evaluate, name, operands, toString |
| Method Detail |
|---|
InitialisableExpression<E> copy()
Unlike Expression.asSymbol(Context), copying
cannot handle cyclic expression references!
copy in interface Copyable<Expression<E>>copy in interface Expression<E>
InitialisableExpression<E> initialise()
throws ExpressionException
Contained initialisable expressions are not initialised!
ExpressionException - If this expression has already
been initialised.boolean isInitialised()
initialised, and hence ready to be evaluated, false if not. If this expression has not been initialised when evaluated, the evaluation will throw an exception.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||