Class FunctionPathToken

java.lang.Object
com.jayway.jsonpath.internal.path.PathToken
com.jayway.jsonpath.internal.path.FunctionPathToken

public class FunctionPathToken extends PathToken
Token representing a Function call to one of the functions produced via the FunctionFactory
See Also:
  • Constructor Details

    • FunctionPathToken

      public FunctionPathToken(String pathFragment, List<Parameter> parameters)
  • Method Details

    • evaluate

      public void evaluate(String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx)
      Specified by:
      evaluate in class PathToken
    • isTokenDefinite

      public boolean isTokenDefinite()
      Return the actual value by indicating true. If this return was false then we'd return the value in an array which isn't what is desired - true indicates the raw value is returned.
      Specified by:
      isTokenDefinite in class PathToken
      Returns:
      true if token is definite
    • getPathFragment

      public String getPathFragment()
      Specified by:
      getPathFragment in class PathToken
    • setParameters

      public void setParameters(List<Parameter> parameters)
    • getParameters

      public List<Parameter> getParameters()
    • getFunctionName

      public String getFunctionName()