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

Define Alias or synonyms for Methods with parameters and accesible through Jexl Context

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Trivial
    • Resolution: Not A Problem
    • 3.1
    • 3.2
    • None

    Description

      I have a static method:

      Util.round : public static Object round(Object number, Object places)

      I can access this Method within an expression adding the class to the context

      jexlContext.set("util", new Util());

      And using an expression as :  util.round(34.678,2)**

      However -within the jexl expression - I don't want to access the method round as :

      util.round(34.678,2), instead I want to use the method with my own name:

      $$ROUND(34.678,2)**

      It is possible?

       

       

       

       

       

      Attachments

        Activity

          People

            henrib Henri Biestro
            osymad Osy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: