Class JsonPathMatcher


  • public class JsonPathMatcher
    extends java.lang.Object
    Provides methods for matching the given cursor location to a specified JsonPath expression.

    This is not a full implementation of the JsonPath syntax documented here: https://support.smartbear.com/alertsite/docs/monitors/api/endpoint/jsonpath.html

    • Constructor Summary

      Constructors 
      Constructor Description
      JsonPathMatcher​(java.lang.String jsonPath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean encloses​(org.openrewrite.Cursor cursor)  
      <T> java.util.Optional<T> find​(org.openrewrite.Cursor cursor)  
      boolean matches​(org.openrewrite.Cursor cursor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonPathMatcher

        public JsonPathMatcher​(java.lang.String jsonPath)
    • Method Detail

      • find

        public <T> java.util.Optional<T> find​(org.openrewrite.Cursor cursor)
      • matches

        public boolean matches​(org.openrewrite.Cursor cursor)
      • encloses

        public boolean encloses​(org.openrewrite.Cursor cursor)