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 Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)abstract voidevaluate(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)PathTokengetNext()protected abstract java.lang.StringgetPathFragment()intgetTokenCount()protected voidhandleArrayIndex(int index, java.lang.String currentPath, java.lang.Object model, EvaluationContextImpl ctx)inthashCode()voidinvoke(PathFunction pathFunction, java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContextImpl ctx)booleanisPathDefinite()abstract booleanisTokenDefinite()voidsetNext(PathToken next)voidsetUpstreamArrayIndex(int idx)java.lang.StringtoString()
-
-
-
Method Detail
-
setUpstreamArrayIndex
public void setUpstreamArrayIndex(int idx)
-
handleArrayIndex
protected void handleArrayIndex(int index, java.lang.String currentPath, java.lang.Object model, EvaluationContextImpl ctx)
-
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()
-
setNext
public void setNext(PathToken next)
-
getNext
public PathToken getNext()
-
-