com.plotnix.jex
Interface Expression

All Known Implementing Classes:
InterpretedExpression, JavaScriptValueExpression, JXPathCompiledExpression

public interface Expression

Compiled form of a value expression, which can be evaluated in a Context.

Version:
$Revision$ $Date$
Author:
Dmitri Plotnikov

Method Summary
 java.lang.Object evaluate(Context context, java.lang.Object[] arguments)
          Produces the value described by the expression in the specified context with the supplied arguments.
 java.lang.Object evaluate(Context context, java.lang.Object[] arguments, java.lang.Class valueType)
          Evaluates the expression and casts the result to the supplied type.
 

Method Detail

evaluate

public java.lang.Object evaluate(Context context,
                                 java.lang.Object[] arguments)
Produces the value described by the expression in the specified context with the supplied arguments.
Parameters:
context - is an evaluation context.
arguments - are argument of the expression. Can be null if the expression does not take any arguments.
Returns:
the result of the evaluation of this expression

evaluate

public java.lang.Object evaluate(Context context,
                                 java.lang.Object[] arguments,
                                 java.lang.Class valueType)
Evaluates the expression and casts the result to the supplied type.
See Also:
evaluate(Context, Object[])


Copyright (c) 2002 - Plotnix, Inc