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:
Created by mattg on 6/27/15.
-
-
Constructor Summary
Constructors Constructor Description FunctionPathToken(java.lang.String pathFragment, java.util.List<Parameter> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)java.lang.StringgetFunctionName()java.util.List<Parameter>getParameters()java.lang.StringgetPathFragment()booleanisTokenDefinite()Return the actual value by indicating true.voidsetParameters(java.util.List<Parameter> parameters)-
Methods inherited from class com.jayway.jsonpath.internal.path.PathToken
equals, getNext, getTokenCount, handleArrayIndex, hashCode, invoke, isPathDefinite, setNext, setUpstreamArrayIndex, toString
-
-
-
-
Constructor Detail
-
FunctionPathToken
public FunctionPathToken(java.lang.String pathFragment, java.util.List<Parameter> parameters)
-
-
Method Detail
-
evaluate
public void evaluate(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)
-
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:
isTokenDefinitein classPathToken- Returns:
- true if token is definite
-
getPathFragment
public java.lang.String getPathFragment()
- Specified by:
getPathFragmentin classPathToken
-
setParameters
public void setParameters(java.util.List<Parameter> parameters)
-
getParameters
public java.util.List<Parameter> getParameters()
-
getFunctionName
public java.lang.String getFunctionName()
-
-