|
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 | ||||||||
java.lang.Objectdk.rode.thesis.interpreter.Expression.SymbolIdiom
public static final class Expression.SymbolIdiom
The symbol idiom ensures that cyclic expression
references will be represented correctly in
symbolic
representation starting from a given expression.
Context.reset(),
Context.touch(Expression)| Constructor Summary | |
|---|---|
private |
Expression.SymbolIdiom()
Private off-limit constructor. |
| Method Summary | |
|---|---|
static StringBuilder |
asSymbol(Context context,
Expression<?> parent,
Expression<?> child)
See Expression.asSymbol(Context). |
static StringBuilder |
asSymbol(Context context,
Expression<?> parent,
Expression<?> child,
StringBuilder sb)
See Expression.asSymbol(Context). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private Expression.SymbolIdiom()
| Method Detail |
|---|
public static final StringBuilder asSymbol(Context context,
Expression<?> parent,
Expression<?> child)
throws ExpressionException
Expression.asSymbol(Context).
context - The context to use; cannot be null.parent - The parent expression; cannot be null.child - The child expression; cannot be null.
NullPointerException - If either argument is null.
ExpressionException - If the symbol cannot be generated.
public static final StringBuilder asSymbol(Context context,
Expression<?> parent,
Expression<?> child,
StringBuilder sb)
throws ExpressionException
Expression.asSymbol(Context).
context - The context to use; cannot be null.parent - The parent expression; cannot be null.child - The child expression; cannot be null.sb - The string builder to append the
symbolic representation to; cannot be null.
sb; never null.
NullPointerException - If either argument is null.
ExpressionException - If the symbol cannot be generated.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||