org.araneaframework.backend.list.memorybased.expression.constant
Class ValueExpression

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

public class ValueExpression
extends Object
implements Expression, Value

See Also:
Serialized Form

Constructor Summary
ValueExpression(Object value)
           
ValueExpression(String name, Object value)
           
 
Method Summary
 Object evaluate(VariableResolver resolver)
          Evaluates this Expression by returning its value.
 String getName()
          Returns the name of the Value.
 Object getValue()
          Returns the Value as an Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueExpression

public ValueExpression(String name,
                       Object value)

ValueExpression

public ValueExpression(Object value)
Method Detail

getName

public String getName()
Description copied from interface: Value
Returns the name of the Value.

Specified by:
getName in interface Value
Returns:
the name of the Value.

getValue

public Object getValue()
Description copied from interface: Value
Returns the Value as an Object.

Specified by:
getValue in interface Value
Returns:
the Value as an Object.

evaluate

public Object evaluate(VariableResolver resolver)
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.