Interface PathFunction

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(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

        java.lang.Object invoke​(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
        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
        parameters -
        Returns:
        result