public class ConcatFunction extends Object implements Function
string concat(string,string,string*)
Concatenates its arguments and returns the resulting string.
Constructor and Description |
---|
ConcatFunction()
Create a new
ConcatFunction object. |
Modifier and Type | Method and Description |
---|---|
Object |
call(Context context,
List args)
Concatenates the arguments and returns the resulting string.
|
static String |
evaluate(List list,
Navigator nav)
Converts each item in the list to a string and returns the
concatenation of these strings.
|
public Object call(Context context, List args) throws FunctionCallException
string()
function.call
in interface Function
context
- the context at the point in the
expression when the function is calledargs
- the list of strings to be concatenatedString
containing the concatenation of the items
of args
FunctionCallException
- if args
has less than two itemspublic static String evaluate(List list, Navigator nav)
String
as if by the XPath string()
function.list
- the items to be concatenatednav
- ignoredCopyright 2001–2022 The Jaxen Project. All rights reserved.