|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.expressions.AbstractExpression
de.unidu.is.expressions.VariableExpression
An expression for a variable.
| Field Summary | |
protected java.lang.String |
name
The variable name of this expression. |
| Constructor Summary | |
VariableExpression(java.lang.String name)
Creates a new expression object. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Tests whether this expressions equals the specified VariableExpression. |
java.lang.String |
get()
Returns the variable name of this expression. |
int |
hashCode()
Returns the hashcode of this expression object. |
void |
set(java.lang.String name)
Sets the variable name of this expression. |
Expression |
substitute(java.util.Map binding)
Performs an substitution for variables, e.g. for each key variable in the specified binding, all occurences of
${key} are replaced by the corresponding value in the
map. |
java.lang.String |
toString()
Returns the variable name of this expression. |
| Methods inherited from class de.unidu.is.expressions.AbstractExpression |
getSQLTemplate |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String name
| Constructor Detail |
public VariableExpression(java.lang.String name)
name - variable name of this expression| Method Detail |
public java.lang.String get()
public void set(java.lang.String name)
name - name of this expressionpublic java.lang.String toString()
public boolean equals(java.lang.Object o)
o - expression to test
public int hashCode()
public Expression substitute(java.util.Map binding)
variable in the specified binding, all occurences of
${key} are replaced by the corresponding value in the
map.Here, the variable is substituted if possible.
substitute in interface Expressionsubstitute in class AbstractExpressionbinding - variable binding
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||