Class TomlPathMatcher

java.lang.Object
org.openrewrite.toml.TomlPathMatcher

public class TomlPathMatcher extends Object
A utility for matching TOML paths similar to JsonPathMatcher. Supports paths like: - "package.name" for nested keys - "[section]" for table sections - "[[array]]" for array tables - Wildcards: "*" matches any single key, "**" matches any path
  • Constructor Details

    • TomlPathMatcher

      public TomlPathMatcher(String path)
  • Method Details

    • matches

      public boolean matches(org.openrewrite.Cursor cursor)