Class ArrayPathToken
java.lang.Object
com.jayway.jsonpath.internal.path.PathToken
com.jayway.jsonpath.internal.path.ArrayPathToken
- Direct Known Subclasses:
ArrayIndexToken,ArraySliceToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckArrayModel(String currentPath, 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
-
Constructor Details
-
ArrayPathToken
public ArrayPathToken()
-
-
Method Details
-
checkArrayModel
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
-