Class JqFunctions.Constant

java.lang.Object
org.apache.camel.language.jq.JqFunctions.Constant
All Implemented Interfaces:
net.thisptr.jackson.jq.Function
Enclosing class:
JqFunctions

public static class JqFunctions.Constant extends Object implements net.thisptr.jackson.jq.Function
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
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      apply in interface net.thisptr.jackson.jq.Function
      Throws:
      net.thisptr.jackson.jq.exception.JsonQueryException