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

Overloadable property access operators

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: