On Mon, Jun 4, 2012 at 9:48 PM, Claude Brisson <[email protected]> wrote:

> So you're speaking about the ScriptEngineFactory.getMethodCallSyntax()
> method.
>
> In your example, arguments should be names of variables, so let's say
> "a" and "b" rather than 1 and 2.
>
> I think the correct syntax returned by this call would then be:
>
> ${Object1.adderFunction($a,$b)}
>

Got it. Now it makes more sense .
Thanks


>
>  Claude
>
> On Mon, 4 Jun 2012 00:36:20 +0530
> Dishara Wijewardana <[email protected]> wrote:
>
> > Hi all,
> > In JSR 223, we can pass basic construct of velocity scripting method
> > invocation and get the syntax.
> > For this purpose JSR 223 accepts three parameters as base constructs.
> > Object Name - Name of the object to whom the method belongs to.
> > method name - name of the method
> > parameters - arguments passed to the method.
> >
> > i.e
> >
> > Object Name - Object1
> > method name - adderFunction
> > parameters - 1,2.
> >
> > ${
> > Object1.adderFunction($1, $2)
> > }
> >
> > Please correct me If I have got incorrect syntax.
> >
>
>


-- 
Thanks
/Dishara

Reply via email to