Class PathToken
java.lang.Object
com.jayway.jsonpath.internal.path.PathToken
- Direct Known Subclasses:
ArrayPathToken
,FunctionPathToken
,PredicatePathToken
,PropertyPathToken
,RootPathToken
,ScanPathToken
,WildcardPathToken
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) PathToken
appendTailToken
(PathToken next) boolean
abstract void
evaluate
(String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx) protected abstract String
int
protected void
handleArrayIndex
(int index, String currentPath, Object model, EvaluationContextImpl ctx) (package private) void
handleObjectProperty
(String currentPath, Object model, EvaluationContextImpl ctx, List<String> properties) int
hashCode()
private static boolean
hasProperty
(String property, Object model, EvaluationContextImpl ctx) void
invoke
(PathFunction pathFunction, String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx) (package private) boolean
isLeaf()
boolean
(package private) boolean
isRoot()
abstract boolean
(package private) boolean
(package private) PathToken
next()
(package private) PathToken
prev()
private static Object
readObjectProperty
(String property, Object model, EvaluationContextImpl ctx) toString()
-
Field Details
-
prev
-
next
-
definite
-
upstreamDefinite
-
-
Constructor Details
-
PathToken
public PathToken()
-
-
Method Details
-
appendTailToken
-
handleObjectProperty
void handleObjectProperty(String currentPath, Object model, EvaluationContextImpl ctx, List<String> properties) -
hasProperty
-
readObjectProperty
-
handleArrayIndex
protected void handleArrayIndex(int index, String currentPath, Object model, EvaluationContextImpl ctx) -
prev
PathToken prev() -
next
PathToken next() -
isLeaf
boolean isLeaf() -
isRoot
boolean isRoot() -
isUpstreamDefinite
boolean isUpstreamDefinite() -
getTokenCount
public int getTokenCount() -
isPathDefinite
public boolean isPathDefinite() -
toString
-
hashCode
public int hashCode() -
equals
-
invoke
public void invoke(PathFunction pathFunction, String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx) -
evaluate
public abstract void evaluate(String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx) -
isTokenDefinite
public abstract boolean isTokenDefinite() -
getPathFragment
-