|
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 TypedExpression<E>
A typed expression exposes the type of the value its
evaluation produces via its type()
method.
Only typed expressions can be the target of a BreakExpression
.
Break expressions are the only type of expression that is
allowed to return null by the type()
method.
TypedExpressionDecorator
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface dk.rode.thesis.interpreter.Expression |
---|
Expression.SymbolIdiom |
Method Summary | |
---|---|
TypedExpression<E> |
copy()
Copies this typed expression. |
Class<E> |
type()
Return the type of value the evaluation of this expression produces. |
Methods inherited from interface dk.rode.thesis.interpreter.Expression |
---|
asSymbol, contains, evaluate, name, operands, toString |
Method Detail |
---|
TypedExpression<E> copy()
Unlike Expression.asSymbol(Context)
, copying
cannot handle cyclic expression references!
copy
in interface Copyable<Expression<E>>
copy
in interface Expression<E>
Class<E> type()
BreakExpression
!
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |