|
|||||||||||
| 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.FunctionExpression
An expression for functions.
| Field Summary | |
protected Expression |
arg
Function argument. |
protected java.lang.String |
name
Function name. |
| Constructor Summary | |
FunctionExpression(java.lang.String name,
Expression arg)
Creates a new expression object. |
|
| Method Summary | |
Expression |
getArgument()
Returns the function argument. |
java.lang.String |
getName()
Returns the function name. |
java.lang.String |
getSQLTemplate()
Returns a string representation for this expression which can be used as a template in an SQL statement. |
void |
setArgument(Expression argument)
Sets the function argument. |
void |
setName(java.lang.String string)
Sets the function name. |
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, starting with an ampersand. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected Expression arg
| Constructor Detail |
public FunctionExpression(java.lang.String name,
Expression arg)
name - function namearg - function argument| 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 argument is substituted.
substitute in interface Expressionsubstitute in class AbstractExpressionbinding - variable binding
public java.lang.String toString()
public java.lang.String getSQLTemplate()
AbstractExpression
getSQLTemplate in interface ExpressiongetSQLTemplate in class AbstractExpressionpublic Expression getArgument()
public java.lang.String getName()
public void setArgument(Expression argument)
argument - function argumentpublic void setName(java.lang.String string)
string - function name
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||