Class ArrayPathToken
- java.lang.Object
-
- com.jayway.jsonpath.internal.path.PathToken
-
- com.jayway.jsonpath.internal.path.ArrayPathToken
-
- Direct Known Subclasses:
ArrayIndexToken,ArraySliceToken
public abstract class ArrayPathToken extends PathToken
-
-
Constructor Summary
Constructors Constructor Description ArrayPathToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckArrayModel(java.lang.String currentPath, java.lang.Object model, EvaluationContextImpl ctx)Check if model is non-null and array.-
Methods inherited from class com.jayway.jsonpath.internal.path.PathToken
equals, evaluate, getNext, getPathFragment, getTokenCount, handleArrayIndex, hashCode, invoke, isPathDefinite, isTokenDefinite, setNext, setUpstreamArrayIndex, toString
-
-
-
-
Method Detail
-
checkArrayModel
protected boolean checkArrayModel(java.lang.String currentPath, java.lang.Object model, EvaluationContextImpl ctx)Check if model is non-null and array.- Parameters:
currentPath-model-ctx-- Returns:
- false if current evaluation call must be skipped, true otherwise
- Throws:
PathNotFoundException- if model is null and evaluation must be interruptedInvalidPathException- if model is not an array and evaluation must be interrupted
-
-