[
https://issues.apache.org/jira/browse/JEXL-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Osy closed JEXL-310.
--------------------
Resolution: Fixed
> Define Alias or synonyms for Methods with parameters and accesible through
> Jexl Context
> ----------------------------------------------------------------------------------------
>
> Key: JEXL-310
> URL: https://issues.apache.org/jira/browse/JEXL-310
> Project: Commons JEXL
> Issue Type: Wish
> Affects Versions: 3.1
> Reporter: Osy
> Priority: Trivial
>
> 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?
>
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.2#803003)