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 Details

    • ArrayPathToken

      public ArrayPathToken()
  • Method Details

    • checkArrayModel

      protected boolean checkArrayModel(String currentPath, 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 interrupted
      InvalidPathException - if model is not an array and evaluation must be interrupted