[ 
https://issues.apache.org/jira/browse/JEXL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721378#action_12721378
 ] 

Henri Biestro commented on JEXL-29:
-----------------------------------

The patch attached to JEXL-15 (2.0 trunk) should fix this too.

> Support non-object-level functions/methods, as size and empty function
> ----------------------------------------------------------------------
>
>                 Key: JEXL-29
>                 URL: https://issues.apache.org/jira/browse/JEXL-29
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Weikuo Liaw
>            Priority: Critical
>             Fix For: 2.0
>
>
> This needs an enhanced JexlContext, as suggested in the prev request, to work.
> As configured validators in a validation form. It is nice for users to use 
> those validators directly such as "required(object)" or "requiredif(object, 
> not empty(object2))".
> I have added "LOOKAHEAD(3) Method() " in the Reference() in Parse.jjt, so it 
> can be accepted but it needs changes to ASTMethod and JexlContext to work.
> void Reference() : {}
> {
>   (LOOKAHEAD(Identifier() "[" ( Expression() | IntegerLiteral() | 
> Reference()) "]") ArrayAccess() | LOOKAHEAD(3) Method() | Identifier() )
>   (LOOKAHEAD(2) "."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to