Class YamlParser

java.lang.Object
org.openrewrite.yaml.YamlParser
All Implemented Interfaces:
org.openrewrite.Parser<Yaml.Documents>

public class YamlParser extends Object implements org.openrewrite.Parser<Yaml.Documents>
  • Constructor Details

    • YamlParser

      public YamlParser()
  • Method Details

    • parse

      public List<Yaml.Documents> parse(String... sources)
      Specified by:
      parse in interface org.openrewrite.Parser<Yaml.Documents>
    • parseInputs

      public List<Yaml.Documents> parseInputs(Iterable<org.openrewrite.Parser.Input> sourceFiles, @Nullable @Nullable Path relativeTo, org.openrewrite.ExecutionContext ctx)
      Specified by:
      parseInputs in interface org.openrewrite.Parser<Yaml.Documents>
    • accept

      public boolean accept(Path path)
      Specified by:
      accept in interface org.openrewrite.Parser<Yaml.Documents>
    • sourcePathFromSourceText

      public Path sourcePathFromSourceText(Path prefix, String sourceCode)
      Specified by:
      sourcePathFromSourceText in interface org.openrewrite.Parser<Yaml.Documents>
    • builder

      public static YamlParser.Builder builder()