org.araneaframework.backend.list.memorybased.expression
Class LazyExpression

java.lang.Object
  extended byorg.araneaframework.backend.list.memorybased.expression.LazyExpression
All Implemented Interfaces:
Expression, Serializable

public class LazyExpression
extends Object
implements Expression

Expression that is initialized lazily.

Since:
1.1
Author:
Rein Raudjärv
See Also:
Serialized Form

Constructor Summary
LazyExpression(ExpressionFactory factory)
           
 
Method Summary
 Object evaluate(VariableResolver resolver)
          Evaluates this Expression by returning its value.
 Expression getExpression()
           
 ExpressionFactory getFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyExpression

public LazyExpression(ExpressionFactory factory)
Method Detail

getFactory

public ExpressionFactory getFactory()

getExpression

public Expression getExpression()

evaluate

public Object evaluate(VariableResolver resolver)
                throws ExpressionEvaluationException
Description copied from interface: Expression
Evaluates this Expression by returning its value. The returned value may also be null.

Specified by:
evaluate in interface Expression
Parameters:
resolver - Resolver that is used to evalute Variables.
Returns:
the value of this Expression.
Throws:
ExpressionEvaluationException - when the evaluating fails.