|
|||||||||||
| 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.Arg2Expression
An expression with an operator and two arguments, e.g. the sum of two expressions.
| Field Summary | |
protected Expression |
arg1
First argument of this expression. |
protected Expression |
arg2
Second argument of this expression. |
protected java.lang.String |
op
Expression operator. |
| Constructor Summary | |
Arg2Expression(java.lang.String op,
Expression arg1,
Expression arg2)
Creates a new expression object. |
|
| Method Summary | |
Expression |
getArg1()
Returns the first argument. |
Expression |
getArg2()
Returns the second argument. |
java.lang.String |
getOp()
Returns the operator symbol. |
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 Expression arg1
protected Expression arg2
| Constructor Detail |
public Arg2Expression(java.lang.String op,
Expression arg1,
Expression arg2)
op - expression operatorarg1 - first argument of this expressionarg2 - second argument 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 AbstractExpressionpublic Expression getArg1()
public Expression getArg2()
public java.lang.String getOp()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||