|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use VariableExpression | |
---|---|
dk.rode.thesis.builder | Implementations and examples of the Builder design pattern [Gamma95, p.97]. |
dk.rode.thesis.interpreter | Implementations and examples of the Interpreter design pattern [Gamma95, p.243]. |
Uses of VariableExpression in dk.rode.thesis.builder |
---|
Methods in dk.rode.thesis.builder that return VariableExpression | ||
---|---|---|
|
ExpressionBuilder.buildVariableExpression(Class<V> type,
String name)
Builds a new VARIABLE expression. |
|
|
CountingExpressionBuilder.buildVariableExpression(Class<V> type,
String name)
|
|
|
AbstractExpressionBuilder.buildVariableExpression(Class<V> type,
String name)
|
Methods in dk.rode.thesis.builder with parameters of type VariableExpression | |
---|---|
TypedExpression<E> |
TypedExpressionBuilder.buildAssignmentExpression(VariableExpression<E> variable,
Expression<? extends E> expression)
|
Expression<E> |
StandardExpressionBuilder.buildAssignmentExpression(VariableExpression<E> variable,
Expression<? extends E> expression)
|
Expression<E> |
ExpressionBuilder.buildAssignmentExpression(VariableExpression<E> variable,
Expression<? extends E> expression)
Builds a new ASSIGNMENT expression. |
Expression<E> |
CountingExpressionBuilder.buildAssignmentExpression(VariableExpression<E> variable,
Expression<? extends E> expression)
|
Uses of VariableExpression in dk.rode.thesis.interpreter |
---|
Subclasses of VariableExpression in dk.rode.thesis.interpreter | |
---|---|
class |
ConstantExpression<E>
A constant expression represents an expression that can be assigned a constant value. |
Fields in dk.rode.thesis.interpreter declared as VariableExpression | |
---|---|
private VariableExpression<E> |
AssignmentExpression.variable
The variable expression to be assigned the value of AssignmentExpression.expression . |
Fields in dk.rode.thesis.interpreter with type parameters of type VariableExpression | |
---|---|
private Map<String,KeyValue<VariableExpression<?>,Object>> |
Context.values
The map storing the values. |
Methods in dk.rode.thesis.interpreter that return VariableExpression | ||
---|---|---|
VariableExpression<E> |
VariableExpression.copy()
|
|
|
Context.getVariable(Class<E> type,
String name)
Returns the variable or
constant stored in
this context associated with the type and name
supplied as type and name , respectively. |
Methods in dk.rode.thesis.interpreter that return types with arguments of type VariableExpression | ||
---|---|---|
Set<VariableExpression<?>> |
Context.getVariables()
Returns a set containing all the contained variables and
constants stored in
this context, in no particular order. |
|
|
Context.getVariables(Class<E> type)
Returns a set containing all the contained variables and
constants stored in
this context, in no particular order, delivering
the type of values supplied as type . |
|
Iterator<VariableExpression<?>> |
Context.iterator()
Returns an iterator to iterate over all the contained variables and
constants stored in
this context, in no particular order. |
Methods in dk.rode.thesis.interpreter with parameters of type VariableExpression | ||
---|---|---|
|
Context.assign(VariableExpression<E> expression,
E value)
Assigns the value supplied as value to the
variable expression supplied
as expression . |
|
boolean |
Context.exist(VariableExpression<?> expression)
Returns true if the variable
expression supplied as expression has been
registered or has
an associated value in this context, false if not. |
|
boolean |
Context.hasValue(VariableExpression<?> expression)
Returns true if the variable
expression supplied as expression has an
associated value in this context, false if not. |
|
|
Context.lookup(VariableExpression<E> expression)
Returns the value currently associated with the variable expression
supplied as expression . |
|
void |
Context.register(VariableExpression<?> expression)
Registers the variable expression
supplied as expression in this context with no
associated value. |
Constructors in dk.rode.thesis.interpreter with parameters of type VariableExpression | |
---|---|
AssignmentExpression(VariableExpression<E> variable,
Expression<? extends E> expression)
Constructor. |
|
VariableExpression(VariableExpression<E> expression)
Copy constructor. |
|
Gunni Rode / rode.dk | ||||||||
PREV NEXT | FRAMES NO FRAMES |