com.codestreet.selector.parser
Interface IExpression

All Known Subinterfaces:
IExpressionBool, IExpressionNumeric, IExpressionString
All Known Implementing Classes:
Identifier

public interface IExpression

Interface implemented by expression implementations.

Author:
Jawaid Hakim.

Method Summary
 java.lang.Object eval(IValueProvider provider, java.lang.Object corr)
          Evaluate the expression.
 java.lang.Object eval(java.util.Map identifiers)
          Evaluate the expression.
 

Method Detail

eval

public java.lang.Object eval(java.util.Map identifiers)
Evaluate the expression.

Parameters:
identifiers - Identifier values.
Returns:
Result of the expression evaluation.

eval

public java.lang.Object eval(IValueProvider provider,
                             java.lang.Object corr)
Evaluate the expression.

Parameters:
provider - Value provider. During evaluation of the expression callbacks are made on the value provider to get identifier values.
corr - Correlation data. Passed as-is to the value provider.
Returns:
Result evaluating the expression.


Copyright © 2002-2006 CodeStreet. All Rights Reserved.