Package org.apache.camel.language.jq
Class JqFunctions.Constant
java.lang.Object
org.apache.camel.language.jq.JqFunctions.Constant
- All Implemented Interfaces:
net.thisptr.jackson.jq.Function
- Enclosing class:
JqFunctions
A function that returns a constant value as part of JQ expression evaluation.
As example, the following JQ expression sets the
.name property to the constant value Donald.
.name = constant(\"Donald\")"
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
Constant
public Constant()
-
-
Method Details
-
apply
public void apply(net.thisptr.jackson.jq.Scope scope, List<net.thisptr.jackson.jq.Expression> args, com.fasterxml.jackson.databind.JsonNode in, net.thisptr.jackson.jq.path.Path path, net.thisptr.jackson.jq.PathOutput output, net.thisptr.jackson.jq.Version version) throws net.thisptr.jackson.jq.exception.JsonQueryException - Specified by:
applyin interfacenet.thisptr.jackson.jq.Function- Throws:
net.thisptr.jackson.jq.exception.JsonQueryException
-