public class ConcatFunction extends java.lang.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 |
---|---|
java.lang.Object |
call(Context context,
java.util.List args)
Concatenates the arguments and returns the resulting string.
|
static java.lang.String |
evaluate(java.util.List list,
Navigator nav)
Converts each item in the list to a string and returns the
concatenation of these strings.
|
public java.lang.Object call(Context context, java.util.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 java.lang.String evaluate(java.util.List list, Navigator nav)
String
as if by the XPath string()
function.list
- the items to be concatenatednav
- ignored