org.databene.benerator.engine.expression
Class ScriptableLiteral

java.lang.Object
  extended by org.databene.script.expression.UnaryExpression<java.lang.Object>
      extended by org.databene.benerator.engine.expression.ScriptableLiteral
All Implemented Interfaces:
org.databene.script.Expression<java.lang.Object>, org.databene.script.expression.WrapperExpression<java.lang.Object>

public class ScriptableLiteral
extends org.databene.script.expression.UnaryExpression<java.lang.Object>

Expression that evaluates a text as a literal; if it encounters a script expression (like {settings.base}) it evaluates the script and parses its result.

Created at 23.07.2009 14:34:42

Since:
0.6.0
Author:
Volker Bergmann
See Also:
LiteralParser

Field Summary
 
Fields inherited from class org.databene.script.expression.UnaryExpression
symbol, term
 
Constructor Summary
ScriptableLiteral(java.lang.String textOrScript)
           
 
Method Summary
 java.lang.Object evaluate(org.databene.commons.Context context)
           
 
Methods inherited from class org.databene.script.expression.UnaryExpression
getSourceExpressions, isConstant, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptableLiteral

public ScriptableLiteral(java.lang.String textOrScript)
Method Detail

evaluate

public java.lang.Object evaluate(org.databene.commons.Context context)


Copyright © 2013. All Rights Reserved.