org.datanucleus.query.evaluator.memory
Interface InvocationEvaluator

All Known Implementing Classes:
AbsFunctionEvaluator, CollectionContainsMethodEvaluator, ConcatFunctionEvaluator, ContainerIsEmptyMethodEvaluator, ContainerSizeMethodEvaluator, CurrentDateFunctionEvaluator, CurrentTimeFunctionEvaluator, CurrentTimestampFunctionEvaluator, DateGetDayMethodEvaluator, DateGetHoursMethodEvaluator, DateGetMinutesMethodEvaluator, DateGetMonthMethodEvaluator, DateGetSecondsMethodEvaluator, DateGetTimeMethodEvaluator, DateGetYearMethodEvaluator, JDOHelperGetObjectIdFunctionEvaluator, JDOHelperGetVersionFunctionEvaluator, LengthFunctionEvaluator, LocateFunctionEvaluator, LowerFunctionEvaluator, MapContainsKeyMethodEvaluator, MapContainsValueMethodEvaluator, MapGetMethodEvaluator, ModFunctionEvaluator, SizeFunctionEvaluator, SqrtFunctionEvaluator, StringEndsWithMethodEvaluator, StringIndexOfMethodEvaluator, StringLengthMethodEvaluator, StringMatchesMethodEvaluator, StringStartsWithMethodEvaluator, StringSubstringMethodEvaluator, StringToLowerCaseMethodEvaluator, StringToUpperCaseMethodEvaluator, StringTrimMethodEvaluator, SubstringFunctionEvaluator, TrimFunctionEvaluator, UpperFunctionEvaluator

public interface InvocationEvaluator

Interface representing an evaluator for an invocation of a method/function.


Method Summary
 java.lang.Object evaluate(InvokeExpression expr, java.lang.Object invokedValue, InMemoryExpressionEvaluator eval)
          Method to evaluate the InvokeExpression, as part of the overall evaluation defined by the InMemoryExpressionEvaluator.
 boolean supportsType(java.lang.Class cls)
          Accessor for whether this evaluator supports invocation of this method on the specified type.
 

Method Detail

evaluate

java.lang.Object evaluate(InvokeExpression expr,
                          java.lang.Object invokedValue,
                          InMemoryExpressionEvaluator eval)
Method to evaluate the InvokeExpression, as part of the overall evaluation defined by the InMemoryExpressionEvaluator.

Parameters:
expr - The expression for invocation
invokedValue - Value on which we are invoking
eval - The overall evaluator for in-memory
Returns:
The result

supportsType

boolean supportsType(java.lang.Class cls)
Accessor for whether this evaluator supports invocation of this method on the specified type.

Parameters:
cls - Type to check
Returns:
Whether it is supported.


Copyright © 2009. All Rights Reserved.