commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JEXL-174) Overloadable property access operators
Date Thu, 27 Aug 2015 20:17:45 GMT

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

Henri Biestro resolved JEXL-174.
--------------------------------
    Resolution: Fixed

> Overloadable property access operators
> --------------------------------------
>
>                 Key: JEXL-174
>                 URL: https://issues.apache.org/jira/browse/JEXL-174
>             Project: Commons JEXL
>          Issue Type: New Feature
>    Affects Versions: 3.0
>            Reporter: Dmitri Blinov
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 3.0
>
>
> In analogy with overloading operators like empty(), size() etc, provide a way to overload
property "get" and "set" operators ([] and .), like 
> {code}
>    public Object getAt(Object obj, Object index) {...}
>    public Object putAt(Object obj, Object index, Object value) {...}
> {code}
> Overloaded operators should be tried before any standard access stategy, ie MAP, POJO
etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message