/**
* Adds the given Expression object to the current Script.
*/
protected void addExpressionScript(ScriptBlock script, Expression expression) {
if ( expression instanceof ConstantExpression ) {
ConstantExpression constantExpression
= (ConstantExpression) expression;
Object value = constantExpression.getValue();
if ( value != null ) {
script.addScript(new TextScript( value.toString() ));
}
}
else