|
|||||||||||
| 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.ArgNExpression
An expression with an operator and a list of arguments, e.g. the sum of expressions.
| Field Summary | |
protected java.util.List |
args
List of arguments of this expression. |
protected java.lang.String |
op
Expression operator. |
| Constructor Summary | |
ArgNExpression(java.lang.String op,
java.util.List args)
Creates a new expression object. |
|
| Method Summary | |
java.lang.String |
getSQLTemplate()
Returns a string representation for this expression which can be used as a template in an SQL statement. |
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 expression in infix notation, embedded in round brackets. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String op
protected java.util.List args
| Constructor Detail |
public ArgNExpression(java.lang.String op,
java.util.List args)
op - expression operatorargs - list of arguments of this expression| Method Detail |
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.Only the arguments are substituted.
substitute in interface Expressionsubstitute in class AbstractExpressionbinding - variable binding
public java.lang.String toString()
public java.lang.String getSQLTemplate()
getSQLTemplate in interface ExpressiongetSQLTemplate in class AbstractExpression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||