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) PathTokenappendTailToken(PathToken next) booleanabstract voidevaluate(String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx) protected abstract Stringintprotected voidhandleArrayIndex(int index, String currentPath, Object model, EvaluationContextImpl ctx) (package private) voidhandleObjectProperty(String currentPath, Object model, EvaluationContextImpl ctx, List<String> properties) inthashCode()private static booleanhasProperty(String property, Object model, EvaluationContextImpl ctx) voidinvoke(PathFunction pathFunction, String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx) (package private) booleanisLeaf()boolean(package private) booleanisRoot()abstract boolean(package private) boolean(package private) PathTokennext()(package private) PathTokenprev()private static ObjectreadObjectProperty(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
-
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
-