Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-174

Overloadable property access operators

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      In analogy with overloading operators like empty(), size() etc, provide a way to overload property "get" and "set" operators ([] and .), like

         public Object getAt(Object obj, Object index) {...}
         public Object putAt(Object obj, Object index, Object value) {...}
      

      Overloaded operators should be tried before any standard access stategy, ie MAP, POJO etc.

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              dmitri_blinov Dmitri Blinov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: