Class YamlParser

  • All Implemented Interfaces:
    org.openrewrite.Parser<Yaml.Documents>

    public class YamlParser
    extends java.lang.Object
    implements org.openrewrite.Parser<Yaml.Documents>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  YamlParser.Builder  
      • Nested classes/interfaces inherited from interface org.openrewrite.Parser

        org.openrewrite.Parser.Input, org.openrewrite.Parser.Listener
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected YamlParser​(org.openrewrite.Parser.Listener onParse)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.nio.file.Path path)  
      static YamlParser.Builder builder()  
      java.util.List<Yaml.Documents> parse​(java.lang.String... sources)  
      java.util.List<Yaml.Documents> parseInputs​(java.lang.Iterable<org.openrewrite.Parser.Input> sourceFiles, @Nullable java.nio.file.Path relativeTo, org.openrewrite.ExecutionContext ctx)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.openrewrite.Parser

        accept, acceptedInputs, parse, parse, reset
    • Constructor Detail

      • YamlParser

        protected YamlParser​(org.openrewrite.Parser.Listener onParse)
    • Method Detail

      • parse

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

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

        public boolean accept​(java.nio.file.Path path)
        Specified by:
        accept in interface org.openrewrite.Parser<Yaml.Documents>