You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Riccardo Mariani <ma...@gmail.com> on 2015/10/01 18:03:14 UTC

lambda expressions

Hi Olingo users,
I'm using the Olingo library version 4.

I've a problem implementing the ExpressionVisitor for filter when the
filter contains a lambda expression.

The filter is something similar to:
$filter=NavigationProperty/any(x:x/property eq value)

The first methos called is the visitMember() method.
Inside this method I do:
Expression expression = uriResourceLambdaAny.getExpression();
expression.accept(filterExpressionVisitor);

at this point the visitMember() is called again with the lambda variable
and the property and the visitLambdaExpression is never called.

Am I using the ExpressionVisitior in a wrong way?

Re: lambda expressions

Posted by Madhawa Kasun Gunasekara <ma...@gmail.com>.
Hi Riccardo,

I found the same observations.

Thanks,
Madhawa


Madhawa

On Thu, Oct 1, 2015 at 9:33 PM, Riccardo Mariani <
mariani.riccardo.79@gmail.com> wrote:

> Hi Olingo users,
> I'm using the Olingo library version 4.
>
> I've a problem implementing the ExpressionVisitor for filter when the
> filter contains a lambda expression.
>
> The filter is something similar to:
> $filter=NavigationProperty/any(x:x/property eq value)
>
> The first methos called is the visitMember() method.
> Inside this method I do:
> Expression expression = uriResourceLambdaAny.getExpression();
> expression.accept(filterExpressionVisitor);
>
> at this point the visitMember() is called again with the lambda variable
> and the property and the visitLambdaExpression is never called.
>
> Am I using the ExpressionVisitior in a wrong way?
>