Class JoinFunction
- java.lang.Object
-
- com.api.jsonata4java.expressions.functions.FunctionBase
-
- com.api.jsonata4java.expressions.functions.JoinFunction
-
- All Implemented Interfaces:
Function,Serializable
public class JoinFunction extends FunctionBase implements Function
From http://docs.jsonata.org/string-functions.html: $join(array[, separator]) Joins an array of component strings into a single concatenated string with each component string separated by the optional separator parameter. It is an error if the input array contains an item which isn’t a string. If separator is not specified, then it is assumed to be the empty string, i.e. no separator between the component strings. It is an error if separator is not a string. Examples $join(['a','b','c'])=="abc" $split("too much, punctuation. hard; to read", /[ ,.;]+/, 3) ~> $join(', ')=="too, much, punctuation"- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringERR_ARG2BADTYPEstatic StringERR_ARG3BADTYPEstatic StringERR_BAD_CONTEXTstatic StringERR_MSG_ARG1_ARR_STR
-
Constructor Summary
Constructors Constructor Description JoinFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxArgs()intgetMinArgs()StringgetSignature()com.fasterxml.jackson.databind.JsonNodeinvoke(ExpressionsVisitor expressionVisitor, MappingExpressionParser.Function_callContext ctx)-
Methods inherited from class com.api.jsonata4java.expressions.functions.FunctionBase
getArgumentCount, getFunctionName
-
-
-
-
Method Detail
-
invoke
public com.fasterxml.jackson.databind.JsonNode invoke(ExpressionsVisitor expressionVisitor, MappingExpressionParser.Function_callContext ctx)
-
getMaxArgs
public int getMaxArgs()
- Specified by:
getMaxArgsin interfaceFunction
-
getMinArgs
public int getMinArgs()
- Specified by:
getMinArgsin interfaceFunction
-
getSignature
public String getSignature()
- Specified by:
getSignaturein interfaceFunction
-
-