You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "dion gillard (JIRA)" <ji...@apache.org> on 2007/10/26 10:49:51 UTC

[jira] Updated: (JEXL-29) Support non-object-level functions/methods, as size and empty function

     [ https://issues.apache.org/jira/browse/JEXL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dion gillard updated JEXL-29:
-----------------------------

    Fix Version/s: 2.0

> 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.