Class PassthruPathFunction

java.lang.Object
com.jayway.jsonpath.internal.function.PassthruPathFunction
All Implemented Interfaces:
PathFunction

public class PassthruPathFunction extends Object implements PathFunction
Defines the default behavior which is to return the model that is provided as input as output Created by mattg on 6/26/15.
  • Constructor Details

    • PassthruPathFunction

      public PassthruPathFunction()
  • Method Details

    • invoke

      public Object invoke(String currentPath, PathRef parent, Object model, EvaluationContext ctx)
      Description copied from interface: PathFunction
      Invoke the function and output a JSON object (or scalar) value which will be the result of executing the path
      Specified by:
      invoke in interface PathFunction
      Parameters:
      currentPath - The current path location inclusive of the function name
      parent - The path location above the current function
      model - The JSON model as input to this particular function
      ctx - Eval context, state bag used as the path is traversed, maintains the result of executing
      Returns: