commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JXPATH-130) I would like to be able to create a varargs extension function.
Date Sun, 28 Feb 2010 17:27:05 GMT

    [ https://issues.apache.org/jira/browse/JXPATH-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839460#action_12839460
] 

Matt Benson commented on JXPATH-130:
------------------------------------

It should be possible to call your varargs method by wrapping the variable arguments in an
array.  At this time it's not yet clear to me whether and how it would be appropriate for
JXPath to attempt to emulate the compiler in this manner.

> I would like to be able to create a varargs extension function.
> ---------------------------------------------------------------
>
>                 Key: JXPATH-130
>                 URL: https://issues.apache.org/jira/browse/JXPATH-130
>             Project: Commons JXPath
>          Issue Type: Improvement
>    Affects Versions: 1.2 Final
>            Reporter: Bob Lyons
>             Fix For: 1.2 Final
>
>
> I was not able to create an extension function that has a variable number of arguments.
> I'd like to create an extension function that returns true if the first argument is equal
to any of the other arguments.
> For example: 
>  ns:firstArgIsInList( node, 1, 2, 3, 4, 5 )
> which would return true if node is equal to 1, 2, 3, 4 or 5.
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message