Class JsonPathMatcher

java.lang.Object
org.openrewrite.yaml.JsonPathMatcher

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

This is not a full implementation of the JsonPath syntax as linked in the "see also."

See Also:
  • Constructor Details

    • JsonPathMatcher

      public JsonPathMatcher(String jsonPath)
  • Method Details

    • find

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

      public boolean matches(org.openrewrite.Cursor cursor)