Class KeySetFunction
- java.lang.Object
-
- com.jayway.jsonpath.internal.function.json.KeySetFunction
-
- All Implemented Interfaces:
PathFunction
public class KeySetFunction extends java.lang.Object implements PathFunction
Author: Sergey Saiyan sergey.sova42@gmail.com Created at 21/02/2018.
-
-
Constructor Summary
Constructors Constructor Description KeySetFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContext ctx, java.util.List<Parameter> parameters)Invoke the function and output a JSON object (or scalar) value which will be the result of executing the path
-
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContext ctx, java.util.List<Parameter> parameters)Description copied from interface:PathFunctionInvoke the function and output a JSON object (or scalar) value which will be the result of executing the path- Specified by:
invokein interfacePathFunction- Parameters:
currentPath- The current path location inclusive of the function nameparent- The path location above the current functionmodel- The JSON model as input to this particular functionctx- Eval context, state bag used as the path is traversed, maintains the result of executing- Returns:
- result
-
-