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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
functionName
private java.lang.String
pathFragment
-
Constructor Summary
Constructors Constructor Description FunctionPathToken(java.lang.String pathFragment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)
java.lang.String
getPathFragment()
boolean
isTokenDefinite()
Return the actual value by indicating true.-
Methods inherited from class com.jayway.jsonpath.internal.path.PathToken
appendTailToken, equals, getTokenCount, handleArrayIndex, handleObjectProperty, hashCode, invoke, isLeaf, isPathDefinite, isRoot, isUpstreamDefinite, next, prev, toString
-
-
-
-
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:
isTokenDefinite
in classPathToken
- Returns:
-
getPathFragment
public java.lang.String getPathFragment()
- Specified by:
getPathFragment
in classPathToken
-
-