Class PathToken
- java.lang.Object
-
- com.jayway.jsonpath.internal.path.PathToken
-
- Direct Known Subclasses:
ArrayPathToken,FunctionPathToken,PredicatePathToken,PropertyPathToken,RootPathToken,ScanPathToken,WildcardPathToken
public abstract class PathToken extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PathToken()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) PathTokenappendTailToken(PathToken next)booleanequals(java.lang.Object obj)abstract voidevaluate(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)protected abstract java.lang.StringgetPathFragment()intgetTokenCount()protected voidhandleArrayIndex(int index, java.lang.String currentPath, java.lang.Object model, EvaluationContextImpl ctx)(package private) voidhandleObjectProperty(java.lang.String currentPath, java.lang.Object model, EvaluationContextImpl ctx, java.util.List<java.lang.String> properties)inthashCode()private static booleanhasProperty(java.lang.String property, java.lang.Object model, EvaluationContextImpl ctx)voidinvoke(PathFunction pathFunction, java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)(package private) booleanisLeaf()booleanisPathDefinite()(package private) booleanisRoot()abstract booleanisTokenDefinite()(package private) booleanisUpstreamDefinite()(package private) PathTokennext()(package private) PathTokenprev()private static java.lang.ObjectreadObjectProperty(java.lang.String property, java.lang.Object model, EvaluationContextImpl ctx)java.lang.StringtoString()
-
-
-
Method Detail
-
handleObjectProperty
void handleObjectProperty(java.lang.String currentPath, java.lang.Object model, EvaluationContextImpl ctx, java.util.List<java.lang.String> properties)
-
hasProperty
private static boolean hasProperty(java.lang.String property, java.lang.Object model, EvaluationContextImpl ctx)
-
readObjectProperty
private static java.lang.Object readObjectProperty(java.lang.String property, java.lang.Object model, EvaluationContextImpl ctx)
-
handleArrayIndex
protected void handleArrayIndex(int index, java.lang.String currentPath, java.lang.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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
invoke
public void invoke(PathFunction pathFunction, java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)
-
evaluate
public abstract void evaluate(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)
-
isTokenDefinite
public abstract boolean isTokenDefinite()
-
getPathFragment
protected abstract java.lang.String getPathFragment()
-
-