Class ArraySizeMethod
- java.lang.Object
-
- org.datanucleus.store.query.inmemory.method.ArraySizeMethod
-
- All Implemented Interfaces:
InvocationEvaluator
public class ArraySizeMethod extends Object implements InvocationEvaluator
Evaluator for the method "{arrayExpr}.size()". NOTE : obviously this "size()" doesn't exist in Java (should be "length"), but added for convenience.
-
-
Constructor Summary
Constructors Constructor Description ArraySizeMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(InvokeExpression expr, Object invokedValue, InMemoryExpressionEvaluator eval)
Method to evaluate the InvokeExpression, as part of the overall evaluation defined by the InMemoryExpressionEvaluator.
-
-
-
Method Detail
-
evaluate
public Object evaluate(InvokeExpression expr, Object invokedValue, InMemoryExpressionEvaluator eval)
Description copied from interface:InvocationEvaluator
Method to evaluate the InvokeExpression, as part of the overall evaluation defined by the InMemoryExpressionEvaluator.- Specified by:
evaluate
in interfaceInvocationEvaluator
- Parameters:
expr
- The expression for invocationinvokedValue
- Value on which we are invokingeval
- The overall evaluator for in-memory- Returns:
- The result
-
-