Support non-object-level functions/methods, as size and empty function
----------------------------------------------------------------------

                 Key: JEXL-29
                 URL: http://issues.apache.org/jira/browse/JEXL-29
             Project: Commons JEXL
          Issue Type: Improvement
    Affects Versions: 1.1
            Reporter: Weikuo Liaw
            Priority: Critical


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.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to